Class 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:
  • Constructor Details

    • TLcdXYPolypoint

      public TLcdXYPolypoint()
    • TLcdXYPolypoint

      public TLcdXYPolypoint(ILcd2DEditablePointList a2DEditablePointList)
    • TLcdXYPolypoint

      public TLcdXYPolypoint(TLcdXYPolypoint aPolypoint, boolean aDeepCopy)
      Makes a clone of the point list that represents the polypoint if it implements the interface ILcdCloneable and aDeepCopy 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 in fBounds.
      Specified by:
      calculateBounds in class ALcd2DEditablePolypoint
    • 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 in fFocusPoint.
      Overrides:
      calculateFocusPoint in class ALcd2DEditablePolypoint
    • clone

      public Object 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 interface ILcdCloneable
      Overrides:
      clone in class ALcd2DEditablePolypoint
      See Also: