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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Rectangle2D
A rectangle to hold the bounds of the selected shapeprotected PathBasedVisionShape
The shape we are currently installed onprotected AffineTransform
A temporary affine transform for rotating, etc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addHandles
(PathBasedVisionShape shape) protected Shape
Creates the primary handle shape - an 8x8 squareprotected Shape
Creates the secondary handle shape, a 6x6 circlevoid
initialize
(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) protected void
Rotates the given point, which is in the underlying shape's un-rotated coordinates, using the current rotation.protected void
Rotates a point into a destination point using the given angle and rotation center.Methods inherited from class com.inductiveautomation.ignition.designer.designable.controls.AbstractSelectionControls
getBoundingRect, getInsets, iterator, paintBackground, selectionRect, uninstall
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
shape
The shape we are currently installed on -
transform
A temporary affine transform for rotating, etc -
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 interfaceISelectionControl
- Overrides:
initialize
in classAbstractSelectionControls
-
addHandles
-
rotate
Rotates the given point, which is in the underlying shape's un-rotated coordinates, using the current rotation. -
rotate
Rotates a point into a destination point using the given angle and rotation center. -
createPrimaryHandleShape
Creates the primary handle shape - an 8x8 square -
createSecondaryHandleShape
Creates the secondary handle shape, a 6x6 circle
-