Documentation of 'org.jhotdraw.draw.LineFigure' Java class
LineFigure
org.jhotdraw.draw

Class LineFigure

    • Constructor Detail

      • LineFigure

        public LineFigure()
        Creates a new instance.
    • Method Detail

      • createHandles

        public java.util.Collection<Handle> createHandles(int detailLevel)
        Description copied from interface: Figure
        Creates handles used to manipulate the figure.
        Specified by:
        createHandles in interface Figure
        Overrides:
        createHandles in class BezierFigure
        Parameters:
        detailLevel - The detail level of the handles. Usually this is 0 for bounding box handles and 1 for point handles. The value -1 is used by the SelectAreaTracker and the HandleTracker to highlight figures, over which the mouse pointer is hovering.
        Returns:
        a Collection of handles
        See Also:
        Handle
      • handleMouseClick

        public boolean handleMouseClick(java.awt.geom.Point2D.Double p,
                                        java.awt.event.MouseEvent evt,
                                        DrawingView view)
        Handles a mouse click.
        Specified by:
        handleMouseClick in interface Figure
        Overrides:
        handleMouseClick in class BezierFigure
        Parameters:
        p - The location of the mouse event.
        evt - The mouse event.
        view - The drawing view which is the source of the mouse event.
        Returns:
        Returns true, if the event was consumed.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.