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 SummaryNested ClassesModifier and TypeClassDescriptionprotected class
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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.AbstractSelectionControlsgetBoundingRect, getInsets, iterator, paintBackground, selectionRect, uninstallMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
shapeThe shape we are currently installed on
- 
transformA temporary affine transform for rotating, etc
- 
boundsA rectangle to hold the bounds of the selected shape
 
- 
- 
Constructor Details- 
AbstractShapeControlsprotected AbstractShapeControls()
 
- 
- 
Method Details- 
initializepublic void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) - Specified by:
- initializein interface- ISelectionControl
- Overrides:
- initializein class- AbstractSelectionControls
 
- 
addHandles
- 
rotateRotates the given point, which is in the underlying shape's un-rotated coordinates, using the current rotation.
- 
rotateRotates a point into a destination point using the given angle and rotation center.
- 
createPrimaryHandleShapeCreates the primary handle shape - an 8x8 square
- 
createSecondaryHandleShapeCreates the secondary handle shape, a 6x6 circle
 
-