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 class
AbstractShapeTool.AbstractShapeControls.AbstractShapeManipulationHandle
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Rectangle2D
bounds
A rectangle to hold the bounds of the selected shapeprotected PathBasedVisionShape
shape
The shape we are currently installed onprotected java.awt.geom.AffineTransform
transform
A temporary affine transform for rotating, etc
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractShapeControls()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addHandles(PathBasedVisionShape shape)
protected java.awt.Shape
createPrimaryHandleShape()
Creates the primary handle shape - an 8x8 squareprotected java.awt.Shape
createSecondaryHandleShape()
Creates the secondary handle shape, a 6x6 circlevoid
initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection)
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.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.-
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:
initialize
in interfaceISelectionControl
- Overrides:
initialize
in 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
-
-