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,- java.lang.Iterable<IHandle>
 - Enclosing class:
- AbstractShapeTool
 
 protected abstract static class AbstractShapeTool.AbstractShapeControls extends AbstractSelectionControls 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classAbstractShapeTool.AbstractShapeControls.AbstractShapeManipulationHandle
 - 
Field SummaryFields Modifier and Type Field Description protected java.awt.geom.Rectangle2DboundsA rectangle to hold the bounds of the selected shapeprotected PathBasedVisionShapeshapeThe shape we are currently installed onprotected java.awt.geom.AffineTransformtransformA temporary affine transform for rotating, etc
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractShapeControls()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddHandles(PathBasedVisionShape shape)protected java.awt.ShapecreatePrimaryHandleShape()Creates the primary handle shape - an 8x8 squareprotected java.awt.ShapecreateSecondaryHandleShape()Creates the secondary handle shape, a 6x6 circlevoidinitialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection)protected voidrotate(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.protected voidrotate(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.- 
Methods inherited from class com.inductiveautomation.ignition.designer.designable.controls.AbstractSelectionControlsgetBoundingRect, getInsets, iterator, paintBackground, selectionRect, uninstall
 
- 
 
- 
- 
- 
Field Detail- 
shapeprotected PathBasedVisionShape shape The shape we are currently installed on
 - 
transformprotected java.awt.geom.AffineTransform transform A temporary affine transform for rotating, etc
 - 
boundsprotected java.awt.geom.Rectangle2D bounds A rectangle to hold the bounds of the selected shape
 
- 
 - 
Method Detail- 
initializepublic void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection) - Specified by:
- initializein interface- ISelectionControl
- Overrides:
- initializein class- AbstractSelectionControls
 
 - 
addHandlesprotected abstract void addHandles(PathBasedVisionShape shape) 
 - 
rotateprotected 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.
 - 
rotateprotected 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.
 - 
createPrimaryHandleShapeprotected java.awt.Shape createPrimaryHandleShape() Creates the primary handle shape - an 8x8 square
 - 
createSecondaryHandleShapeprotected java.awt.Shape createSecondaryHandleShape() Creates the secondary handle shape, a 6x6 circle
 
- 
 
-