protected abstract static class AbstractShapeTool.AbstractShapeControls extends AbstractSelectionControls
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractShapeTool.AbstractShapeControls.AbstractShapeManipulationHandle |
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.AffineTransform |
_tx
A temporary affine transform for rotating, etc
|
protected java.awt.geom.Rectangle2D |
bounds
A rectangle to hold the bounds of the selected shape
|
protected PathBasedVisionShape |
shape
The shape we are currently installed on
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractShapeControls() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addHandles(PathBasedVisionShape shape) |
protected java.awt.Shape |
createPrimaryHandleShape()
Creates the primary handle shape - an 8x8 square
|
protected java.awt.Shape |
createSecondaryHandleShape()
Creates the secondary handle shape, a 6x6 circle
|
void |
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.
|
getBoundingRect, getInsets, iterator, paintBackground, selectionRect, uninstall
protected PathBasedVisionShape shape
protected java.awt.geom.AffineTransform _tx
protected java.awt.geom.Rectangle2D bounds
public void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection)
initialize
in interface ISelectionControl
initialize
in class AbstractSelectionControls
protected abstract void addHandles(PathBasedVisionShape shape)
protected void rotate(java.awt.geom.Point2D src, java.awt.geom.Point2D dst)
protected void rotate(java.awt.geom.Point2D src, java.awt.geom.Point2D dst, double angle, double x, double y)
protected java.awt.Shape createPrimaryHandleShape()
protected java.awt.Shape createSecondaryHandleShape()