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

Interface Handle

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addHandleListener(HandleListener l)
      Adds a listener for this handle.
      boolean contains(java.awt.Point p)
      Tests if a point is contained in the handle.
      java.util.Collection<Handle> createSecondaryHandles()
      Creates secondary handles.
      void dispose()
      Disposes the resources aquired by the handler.
      void draw(java.awt.Graphics2D g)
      Draws this handle.
      java.awt.Rectangle getBounds()
      Returns the bounding box of the handle.
      java.awt.Cursor getCursor()
      Returns a cursor for the handle.
      java.awt.Rectangle getDrawingArea()
      Returns the drawing area of the handle.
      Figure getOwner()
      Returns the owner of this handle.
      java.lang.String getToolTipText(java.awt.Point p)
      Returns a tooltip for the specified location.
      void invalidate()
      Invalidates the handle.
      boolean isCombinableWith(Handle handle)
      Returns true, if this handle is combinable with the specified handle.
      void removeHandleListener(HandleListener l)
      Removes a listener for this handle.
      void setView(DrawingView view)
      Sets the view of the handle.
      void trackDoubleClick(java.awt.Point p, int modifiersEx)
      Tracks a double click.
      void trackEnd(java.awt.Point anchor, java.awt.Point lead, int modifiersEx)
      Tracks the end of the interaction.
      void trackStart(java.awt.Point anchor, int modifiersEx)
      Tracks the start of the interaction.
      void trackStep(java.awt.Point anchor, java.awt.Point lead, int modifiersEx)
      Tracks a step of the interaction.
      void viewTransformChanged()
      This method is invoked by the drawing view, when its transform has changed.
      • Methods inherited from interface java.awt.event.KeyListener

        keyPressed, keyReleased, keyTyped
    • Method Detail

      • getOwner

        Figure getOwner()
        Returns the owner of this handle.
      • addHandleListener

        void addHandleListener(HandleListener l)
        Adds a listener for this handle.
      • removeHandleListener

        void removeHandleListener(HandleListener l)
        Removes a listener for this handle.
      • getBounds

        java.awt.Rectangle getBounds()
        Returns the bounding box of the handle. Note: The bounding box must be returned in the coordinate system of the DrawingView.
      • getDrawingArea

        java.awt.Rectangle getDrawingArea()
        Returns the drawing area of the handle. Note: The drawing area must be returned in the coordinate system of the DrawingView.
      • contains

        boolean contains(java.awt.Point p)
        Tests if a point is contained in the handle.
      • draw

        void draw(java.awt.Graphics2D g)
        Draws this handle. Note: The handle is drawn with the coordinate system of the DrawingView.
      • invalidate

        void invalidate()
        Invalidates the handle. This method informs its listeners that its current display box is invalid and should be refreshed.
      • dispose

        void dispose()
        Disposes the resources aquired by the handler.
      • getCursor

        java.awt.Cursor getCursor()
        Returns a cursor for the handle.
      • isCombinableWith

        boolean isCombinableWith(Handle handle)
        Returns true, if this handle is combinable with the specified handle. This method is used to determine, if multiple handles need to be tracked, when more than one figure is selected.
      • trackStart

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

        void trackStep(java.awt.Point anchor,
                       java.awt.Point lead,
                       int modifiersEx)
        Tracks a step of the interaction.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position
      • trackEnd

        void trackEnd(java.awt.Point anchor,
                      java.awt.Point lead,
                      int modifiersEx)
        Tracks the end of the interaction.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position
      • trackDoubleClick

        void trackDoubleClick(java.awt.Point p,
                              int modifiersEx)
        Tracks a double click.
      • viewTransformChanged

        void viewTransformChanged()
        This method is invoked by the drawing view, when its transform has changed. This means, that DrawingView.viewToDrawing and DrawingView.drawingToView will return different values than they did before.
      • createSecondaryHandles

        @Nullable
        java.util.Collection<Handle> createSecondaryHandles()
        Creates secondary handles.
      • getToolTipText

        @Nullable
        java.lang.String getToolTipText(java.awt.Point p)
        Returns a tooltip for the specified location.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.