Documentation of 'org.jhotdraw.draw.handle.CloseHandle' Java class
CloseHandle
org.jhotdraw.draw.handle

Class CloseHandle

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.util.EventListener, FigureListener, Handle


    public class CloseHandle
    extends LocatorHandle
    A Handle which requests to remove its owning figure when clicked.
    • Constructor Detail

      • CloseHandle

        public CloseHandle(Figure owner)
        Creates a new instance.
      • CloseHandle

        public CloseHandle(Figure owner,
                           Locator locator)
        Creates a new instance.
    • Method Detail

      • draw

        public void draw(java.awt.Graphics2D g)
        Draws this handle.
        Specified by:
        draw in interface Handle
        Overrides:
        draw in class AbstractHandle
      • trackEnd

        public void trackEnd(java.awt.Point anchor,
                             java.awt.Point lead,
                             int modifiersEx)
        Description copied from interface: Handle
        Tracks the end of the interaction.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position
      • trackStart

        public void trackStart(java.awt.Point anchor,
                               int modifiersEx)
        Description copied from interface: Handle
        Tracks the start of the interaction. The default implementation does nothing.
        Parameters:
        anchor - the position where the interaction started
      • trackStep

        public void trackStep(java.awt.Point anchor,
                              java.awt.Point lead,
                              int modifiersEx)
        Description copied from interface: Handle
        Tracks a step of the interaction.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.