Class AbstractShapeTool.AbstractShapeControls.AbstractShapeManipulationHandle

    • Field Detail

      • parentRect

        protected java.awt.geom.Rectangle2D parentRect
    • Constructor Detail

      • AbstractShapeManipulationHandle

        protected AbstractShapeManipulationHandle()
    • Method Detail

      • initPaints

        protected void initPaints()
      • paintHandle

        public void paintHandle​(java.awt.Graphics2D g,
                                boolean mouseOver,
                                boolean drag)
        Description copied from interface: IHandle
        Gives the handle a chance to paint itself on the given graphics object.
      • newDrawShape

        protected java.awt.Shape newDrawShape()
        Description copied from class: AbstractShapeHandle
        Called to create a new draw shape. Expectation is that a subclass will override this to provide a meaningful shape. Anchor point is at (0,0). Default shape is a 10x10 square anchored in the center.
        Overrides:
        newDrawShape in class AbstractShapeHandle
      • adjustRelative

        protected void adjustRelative​(java.awt.geom.Point2D.Double location)
        Adjust a point in 2d space relative to the interaction layer to be relative to the shape's parent