Class AbstractShapeTool.AbstractShapeControls

java.lang.Object
com.inductiveautomation.ignition.designer.designable.controls.AbstractSelectionControls
com.inductiveautomation.factorypmi.designer.workspace.tools.AbstractShapeTool.AbstractShapeControls
All Implemented Interfaces:
ISelectionControl, Iterable<IHandle>
Enclosing class:
AbstractShapeTool

protected abstract static class AbstractShapeTool.AbstractShapeControls extends AbstractSelectionControls
  • Field Details

    • shape

      protected PathBasedVisionShape shape
      The shape we are currently installed on
    • transform

      protected AffineTransform transform
      A temporary affine transform for rotating, etc
    • bounds

      protected Rectangle2D bounds
      A rectangle to hold the bounds of the selected shape
  • Constructor Details

    • AbstractShapeControls

      protected AbstractShapeControls()
  • Method Details

    • initialize

      public void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection)
      Specified by:
      initialize in interface ISelectionControl
      Overrides:
      initialize in class AbstractSelectionControls
    • addHandles

      protected abstract void addHandles(PathBasedVisionShape shape)
    • rotate

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

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

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

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