Documentation of 'CH.ifa.draw.framework.Handle' Java class
Handle
CH.ifa.draw.framework

Interface Handle

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int HANDLESIZE 
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method and Description
      boolean containsPoint(int x, int y)
      Tests if a point is contained in the handle.
      java.awt.Rectangle displayBox()
      Gets the display box of the handle.
      void draw(java.awt.Graphics g)
      Draws this handle.
      void invokeEnd(int dx, int dy, Drawing drawing)
      Deprecated. 
      As of version 4.1, use invokeEnd(x, y, anchorX, anchorY, drawingView). Tracks the end of the interaction.
      void invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)
      Tracks the end of the interaction.
      void invokeStart(int x, int y, Drawing drawing)
      Deprecated. 
      As of version 4.1, use invokeStart(x, y, drawingView) Tracks the start of the interaction. The default implementation does nothing.
      void invokeStart(int x, int y, DrawingView view)
      Deprecated. 
      As of version 4.1, use invokeStart(x, y, drawingView) Tracks the start of the interaction. The default implementation does nothing.
      void invokeStep(int dx, int dy, Drawing drawing)
      Deprecated. 
      As of version 4.1, use invokeStep(x, y, anchorX, anchorY, drawingView) Tracks a step of the interaction.
      void invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)
      Tracks a step of the interaction.
      java.awt.Point locate()
      Locates the handle on the figure.
      Figure owner()
      Gets the handle's owner.
    • Method Detail

      • locate

        java.awt.Point locate()
        Locates the handle on the figure. The handle is drawn centered around the returned point.
      • invokeStart

        void invokeStart(int x,
                         int y,
                         Drawing drawing)
        Deprecated. As of version 4.1, use invokeStart(x, y, drawingView) Tracks the start of the interaction. The default implementation does nothing.
        Parameters:
        x - the x position where the interaction started
        y - the y position where the interaction started
      • invokeStart

        void invokeStart(int x,
                         int y,
                         DrawingView view)
        Deprecated. As of version 4.1, use invokeStart(x, y, drawingView) Tracks the start of the interaction. The default implementation does nothing.
        Parameters:
        x - the x position where the interaction started
        y - the y position where the interaction started
        view - the handles container
      • invokeStep

        void invokeStep(int dx,
                        int dy,
                        Drawing drawing)
        Deprecated. As of version 4.1, use invokeStep(x, y, anchorX, anchorY, drawingView) Tracks a step of the interaction.
        Parameters:
        dx - x delta of this step
        dy - y delta of this step
      • invokeStep

        void invokeStep(int x,
                        int y,
                        int anchorX,
                        int anchorY,
                        DrawingView view)
        Tracks a step of the interaction.
        Parameters:
        x - the current x position
        y - the current y position
        anchorX - the x position where the interaction started
        anchorY - the y position where the interaction started
      • invokeEnd

        void invokeEnd(int x,
                       int y,
                       int anchorX,
                       int anchorY,
                       DrawingView view)
        Tracks the end of the interaction.
        Parameters:
        x - the current x position
        y - the current y position
        anchorX - the x position where the interaction started
        anchorY - the y position where the interaction started
      • invokeEnd

        void invokeEnd(int dx,
                       int dy,
                       Drawing drawing)
        Deprecated. As of version 4.1, use invokeEnd(x, y, anchorX, anchorY, drawingView). Tracks the end of the interaction.
      • owner

        Figure owner()
        Gets the handle's owner.
      • displayBox

        java.awt.Rectangle displayBox()
        Gets the display box of the handle.
      • containsPoint

        boolean containsPoint(int x,
                              int y)
        Tests if a point is contained in the handle.
      • draw

        void draw(java.awt.Graphics g)
        Draws this handle.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.