Package com.luciad.shape.shape2D
Class TLcdXYPolypoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.shape2D.ALcd2DEditableShape
com.luciad.shape.shape2D.ALcd2DEditablePolypoint
com.luciad.shape.shape2D.TLcdXYPolypoint
- All Implemented Interfaces:
ILcdBounded
,ILcdPointList
,ILcdPointList2
,ILcdPolypoint
,ILcdShape
,ILcd2DEditablePointList
,ILcd2DEditablePolypoint
,ILcd2DEditableShape
,ILcdCache
,ILcdCloneable
,ILcdInvalidateable
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcdMeasureXYPolypoint
,TLcdXYMPolypoint
,TLcdXYPolygon
,TLcdXYPolyline
public class TLcdXYPolypoint
extends ALcd2DEditablePolypoint
implements ILcd2DEditablePolypoint, ILcdCache
This class provides an implementation of
ILcd2DEditablePolypoint
in
the cartesian space.
This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.
- See Also:
-
Field Summary
Fields inherited from class com.luciad.shape.shape2D.ALcd2DEditablePolypoint
fBounds, fFocusPoint
-
Constructor Summary
ConstructorDescriptionTLcdXYPolypoint
(ILcd2DEditablePointList a2DEditablePointList) TLcdXYPolypoint
(TLcdXYPolypoint aPolypoint, boolean aDeepCopy) Makes a clone of the point list that represents the polypoint if it implements the interfaceILcdCloneable
andaDeepCopy
is true. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Computes the bounds of the polypoint.protected void
Computes the focus point as the center of the bounding box.clone()
Creates and returns a copy of this object.Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePolypoint
clearCache, contains2D, equals, get2DEditablePointList, getBounds, getCachedObject, getFocusPoint, getPoint, getPointCount, getPointSFCT, getX, getY, getZ, hashCode, insert2DPoint, insertIntoCache, invalidateBounds, invalidateObject, move2D, move2DPoint, removeCachedObject, removePointAt, set2DEditablePointList, setFocusPoint, toString, translate2D, translate2DPoint
Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
contains3D, move2D
Methods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2D, translate2DPoint
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCache
clearCache, getCachedObject, insertIntoCache, removeCachedObject
Methods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdXYPolypoint
public TLcdXYPolypoint() -
TLcdXYPolypoint
-
TLcdXYPolypoint
Makes a clone of the point list that represents the polypoint if it implements the interfaceILcdCloneable
andaDeepCopy
is true. #see com.luciad.util.ILcdCloneable
-
-
Method Details
-
calculateBounds
protected void calculateBounds()Description copied from class:ALcd2DEditablePolypoint
Computes the bounds of the polypoint. The resulting bounds are stored infBounds
.- Specified by:
calculateBounds
in classALcd2DEditablePolypoint
-
calculateFocusPoint
protected void calculateFocusPoint()Description copied from class:ALcd2DEditablePolypoint
Computes the focus point as the center of the bounding box. The resulting point is stored infFocusPoint
.- Overrides:
calculateFocusPoint
in classALcd2DEditablePolypoint
-
clone
Creates and returns a copy of this object. The contained editable points list is cloned. If cloning is not possible, a warning is sent to the log and a shallow copy is returned. The cache, the bounds and the focus point are not copied or cloned at all, but recalculated when needed.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classALcd2DEditablePolypoint
- See Also:
-