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 Summary
Nested Classes Modifier and Type Class Description protected classAbstractShapeTool.AbstractShapeControls.AbstractShapeManipulationHandle
-
Field Summary
Fields 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 Summary
Constructors Modifier Constructor Description protectedAbstractShapeControls()
-
Method Summary
All 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.AbstractSelectionControls
getBoundingRect, getInsets, iterator, paintBackground, selectionRect, uninstall
-
-
-
-
Field Detail
-
shape
protected PathBasedVisionShape shape
The shape we are currently installed on
-
transform
protected java.awt.geom.AffineTransform transform
A temporary affine transform for rotating, etc
-
bounds
protected java.awt.geom.Rectangle2D bounds
A rectangle to hold the bounds of the selected shape
-
-
Method Detail
-
initialize
public void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection)
- Specified by:
initializein interfaceISelectionControl- Overrides:
initializein classAbstractSelectionControls
-
addHandles
protected abstract void addHandles(PathBasedVisionShape shape)
-
rotate
protected 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.
-
rotate
protected 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.
-
createPrimaryHandleShape
protected java.awt.Shape createPrimaryHandleShape()
Creates the primary handle shape - an 8x8 square
-
createSecondaryHandleShape
protected java.awt.Shape createSecondaryHandleShape()
Creates the secondary handle shape, a 6x6 circle
-
-