public abstract class AbstractSelectionControls extends java.lang.Object implements ISelectionControl
| Modifier and Type | Field and Description |
|---|---|
protected DesignableContainer |
container |
protected DesignableDelegate |
delegate |
protected java.util.List<IHandle> |
handles |
protected java.awt.Insets |
insets |
protected DesignPanel |
panel |
protected java.util.List<javax.swing.JComponent> |
selection |
| Constructor and Description |
|---|
AbstractSelectionControls() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.geom.Rectangle2D |
getBoundingRect(DesignPanel panel,
DesignableDelegate delegate,
java.util.List<javax.swing.JComponent> objects,
java.awt.geom.Rectangle2D rect)
Calculates a rectangle that is the smallest rectangle that encloses object's bounds, in logical (unzoomed) space.
|
java.awt.Insets |
getInsets()
These insets describe the area around the selection control in which its painting and handles are allowed to draw
themselves.
|
void |
initialize(DesignPanel panel,
DesignableContainer container,
DesignableDelegate delegate,
java.util.List<javax.swing.JComponent> selection) |
java.util.Iterator<IHandle> |
iterator() |
void |
paintBackground(java.awt.Graphics2D g)
A chance to paint the background of the selection area before the IHandles are painted
|
protected java.awt.geom.Rectangle2D |
selectionRect()
Calculates a rectangle that is the smallest rectangle that encloses all selected object's bounds.
|
void |
uninstall() |
protected DesignPanel panel
protected DesignableContainer container
protected DesignableDelegate delegate
protected java.util.List<javax.swing.JComponent> selection
protected java.awt.Insets insets
protected java.util.List<IHandle> handles
public void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection)
initialize in interface ISelectionControlpublic void uninstall()
uninstall in interface ISelectionControlprotected java.awt.geom.Rectangle2D selectionRect()
public static java.awt.geom.Rectangle2D getBoundingRect(DesignPanel panel, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> objects, java.awt.geom.Rectangle2D rect)
public java.util.Iterator<IHandle> iterator()
iterator in interface java.lang.Iterable<IHandle>public java.awt.Insets getInsets()
ISelectionControlgetInsets in interface ISelectionControlpublic void paintBackground(java.awt.Graphics2D g)
ISelectionControlpaintBackground in interface ISelectionControl