Class AbstractHandle

java.lang.Object
org.jhotdraw8.draw.handle.AbstractHandle
All Implemented Interfaces:
Handle
Direct Known Subclasses:
AbstractConnectorHandle, AnchorOutlineHandle, BezierControlPointEditHandle, BezierNodeEditHandle, BezierNodeMoveHandle, BezierNodeNonMovableEditHandle, BezierNodeTangentHandle, BezierPathOutlineHandle, BoundsInLocalOutlineHandle, BoundsInParentOutlineHandle, BoundsInTranslationOutlineHandle, LineOutlineHandle, LocatorHandle, MultipleSelectionMoveHandle, MultipleSelectionOutlineHandle, PathIterableOutlineHandle, PathIterablePointsHandle, PointHandle, PolygonOutlineHandle, PolylineOutlineHandle, PolyPointEditHandle, PolyPointMoveHandle, RelativeControlPointHandle, RelativePointHandle, RotateHandle

public abstract class AbstractHandle extends Object implements Handle
AbstractHandle.
Author:
Werner Randelshofer
  • Field Details

  • Constructor Details

  • Method Details

    • dispose

      public final void dispose()
      Description copied from interface: Handle
      Disposes of all resources acquired by the handler.
      Specified by:
      dispose in interface Handle
    • getOwner

      public @NonNull Figure getOwner()
      Description copied from interface: Handle
      Returns the figure to which the handle is associated.
      Specified by:
      getOwner in interface Handle
      Returns:
      a figure
    • isCompatible

      public boolean isCompatible(@NonNull Handle that)
      Returns true if both handles have the same class.
      Specified by:
      isCompatible in interface Handle
      Parameters:
      that - the other handle
      Returns:
      true if compatible