Class AbstractShapeTool.AbstractShapeControls

    • Field Detail

      • transform

        protected java.awt.geom.AffineTransform transform
        A temporary affine transform for rotating, etc
      • bounds

        protected java.awt.geom.Rectangle2D bounds
        A rectangle to hold the bounds of the selected shape
    • Constructor Detail

      • AbstractShapeControls

        protected AbstractShapeControls()
    • Method Detail

      • rotate

        protected void rotate​(java.awt.geom.Point2D src,
                              java.awt.geom.Point2D dst)
        Rotates the given point, which is in the underlying shape's un-rotated coordinates, using the current rotation.
      • rotate

        protected void rotate​(java.awt.geom.Point2D src,
                              java.awt.geom.Point2D dst,
                              double angle,
                              double x,
                              double y)
        Rotates a point into a destination point using the given angle and rotation center.
      • createPrimaryHandleShape

        protected java.awt.Shape createPrimaryHandleShape()
        Creates the primary handle shape - an 8x8 square
      • createSecondaryHandleShape

        protected java.awt.Shape createSecondaryHandleShape()
        Creates the secondary handle shape, a 6x6 circle