public abstract class ALcdXYDynamicSegmentationEvent extends Object implementsILcd2DEditableDynamicSegmentationEvent, Serializable
ALcdXYDynamicSegmentationEvent
is an implementation of
ILcd2DDynamicSegmentationEvent
.
Be careful: points, shape lists and polylines that are returned are often the same object, setup with different values. These objects are therefore changing all the time, and it is not useful to keep a reference to them.
Two consecutive points of a polyline are guaranteed not to be the same object, if that is also the case for the underlying polylineM.
Modifier and Type | Field and Description |
---|---|
static boolean |
TRACEON
Deprecated.
|
Constructor and Description |
---|
ALcdXYDynamicSegmentationEvent()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Deprecated.
Makes
Object.clone() public. |
abstract ILcd2DEditableDynamicSegmentationEvent |
cloneAsEditable()
Deprecated.
|
boolean |
contains2D(double aX,
double aY)
Deprecated.
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Deprecated.
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Deprecated.
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Deprecated.
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
void |
edit(ILcdShapeList aPolylineM,
double aLocation,
double aLength,
double aDelta)
Deprecated.
|
ILcdPoint |
getBeginPoint()
Deprecated.
|
ILcdBounds |
getBounds()
Deprecated.
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
abstract double |
getCachedBoundsH()
Deprecated.
|
abstract double |
getCachedBoundsW()
Deprecated.
|
abstract double |
getCachedBoundsX()
Deprecated.
|
abstract double |
getCachedBoundsY()
Deprecated.
|
ILcdPoint |
getEndPoint()
Deprecated.
|
ILcdPoint |
getFocusPoint()
Deprecated.
Returns the focus point of this
ILcdShape . |
int |
getHotPointCount()
Deprecated.
|
abstract double |
getMaxBoundsValue()
Deprecated.
|
abstract double |
getMinBoundsValue()
Deprecated.
|
ILcdPoint |
getPointFromBegin(int aIndex)
Deprecated.
|
ILcdPoint |
getPointFromEnd(int aIndex)
Deprecated.
|
ILcdPoint |
getPosition()
Deprecated.
|
ILcdShapeList |
getSegment()
Deprecated.
|
ILcdShape |
getShape(int aIndex)
Deprecated.
|
int |
getShapeCount()
Deprecated.
|
boolean |
hasPosition()
Deprecated.
|
protected boolean |
isDirty()
Deprecated.
|
protected void |
recalculateCache()
Deprecated.
|
abstract void |
setCachedBoundsH(double aCachedBoundsH)
Deprecated.
|
abstract void |
setCachedBoundsW(double aCachedBoundsW)
Deprecated.
|
abstract void |
setCachedBoundsX(double aCachedBoundsX)
Deprecated.
|
abstract void |
setCachedBoundsY(double aCachedBoundsY)
Deprecated.
|
protected void |
setDirty(boolean aDirty)
Deprecated.
|
String |
toString()
Deprecated.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setDelta, setDeltaKeepEnd, setLength, setLocation, setPolylineM
getDelta, getLength, getLocation, getPolylineM
public ALcdXYDynamicSegmentationEvent()
public abstract double getMinBoundsValue()
public abstract double getMaxBoundsValue()
protected boolean isDirty()
protected void setDirty(boolean aDirty)
public abstract double getCachedBoundsX()
public abstract double getCachedBoundsY()
public abstract double getCachedBoundsW()
public abstract double getCachedBoundsH()
public abstract void setCachedBoundsX(double aCachedBoundsX)
public abstract void setCachedBoundsY(double aCachedBoundsY)
public abstract void setCachedBoundsW(double aCachedBoundsW)
public abstract void setCachedBoundsH(double aCachedBoundsH)
public void edit(ILcdShapeList aPolylineM, double aLocation, double aLength, double aDelta)
edit
in interface ILcd2DEditableDynamicSegmentationEvent
public int getHotPointCount()
getHotPointCount
in interface ILcd2DDynamicSegmentationEvent
public boolean hasPosition()
hasPosition
in interface ILcd2DDynamicSegmentationEvent
public ILcdPoint getPosition()
getPosition
in interface ILcd2DDynamicSegmentationEvent
public ILcdPoint getPointFromBegin(int aIndex)
getPointFromBegin
in interface ILcd2DDynamicSegmentationEvent
public ILcdPoint getBeginPoint()
getBeginPoint
in interface ILcd2DDynamicSegmentationEvent
public ILcdPoint getPointFromEnd(int aIndex)
getPointFromEnd
in interface ILcd2DDynamicSegmentationEvent
public ILcdPoint getEndPoint()
getEndPoint
in interface ILcd2DDynamicSegmentationEvent
public ILcdShapeList getSegment()
getSegment
in interface ILcd2DDynamicSegmentationEvent
public int getShapeCount()
getShapeCount
in interface ILcd2DDynamicSegmentationEvent
public ILcdShape getShape(int aIndex) throws IndexOutOfBoundsException
getShape
in interface ILcd2DDynamicSegmentationEvent
IndexOutOfBoundsException
public abstract ILcd2DEditableDynamicSegmentationEvent cloneAsEditable()
cloneAsEditable
in interface ILcd2DDynamicSegmentationEvent
public abstract Object clone()
ILcdCloneable
Makes Object.clone()
public.
java.lang.Object
, it can be implemented like this:
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
throw new RuntimeException( e );
}
}
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()
public boolean contains2D(double aX, double aY)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.
If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points)
the return value is unspecified.
It is highly recommended to return an undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.protected void recalculateCache()