public abstract class ALcdVVModel extends Object implements ILcdVVModel
ILcdVVModel
. It shall be used as support
class to extend, when implementing the ILcdVVModel
interface.
Whenever the ILcdVVModel
's internal state changes,
for example by editing a polyline on a map, the fireChangeEvent
has to be called in order to update the VV's internal data-fields and to start
repainting the Vertical View.Constructor and Description |
---|
ALcdVVModel() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
The
changeEvent will be thrown when the models internal
state has changed and recalculation is required. |
protected void |
fireChangeModel()
Notifies all listeners that have registered interest for notification
on the ChangeEvent.
|
double |
getDistance(int aPointIndexA,
int aPointIndexB)
Returns the distance between the given two points.
|
void |
removeChangeListener(ChangeListener l) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPoint, getPointCount, getSubProfileCount, isEditable, maxZ, minZ, setPointZ, stepLenghtRatio, subProfilePointCount
public double getDistance(int aPointIndexA, int aPointIndexB)
geodetic
,
rhumb
, or
cartesian
distances.getDistance
in interface ILcdVVModel
aPointIndexA
- the index of the first point on the main profile.aPointIndexB
- the index of the second point on the main profilepublic void addChangeListener(ChangeListener l)
ILcdVVModel
changeEvent
will be thrown when the models internal
state has changed and recalculation is required.addChangeListener
in interface ILcdVVModel
public void removeChangeListener(ChangeListener l)
removeChangeListener
in interface ILcdVVModel
ILcdVVModel.addChangeListener(javax.swing.event.ChangeListener)
protected void fireChangeModel()
TLcdVVJPanel
needs to be reconstructed.