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 Rectangle2DA rectangle to hold the bounds of the selected shapeprotected PathBasedVisionShapeThe shape we are currently installed onprotected AffineTransformA temporary affine transform for rotating, etc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddHandles(PathBasedVisionShape shape) protected ShapeCreates the primary handle shape - an 8x8 squareprotected ShapeCreates the secondary handle shape, a 6x6 circlevoidinitialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) protected voidRotates the given point, which is in the underlying shape's un-rotated coordinates, using the current rotation.protected voidRotates 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, uninstallMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initializein interfaceISelectionControl- Overrides:
initializein 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
-