Class AbstractSelectionControls
java.lang.Object
com.inductiveautomation.ignition.designer.designable.controls.AbstractSelectionControls
- All Implemented Interfaces:
ISelectionControl
,Iterable<IHandle>
- Direct Known Subclasses:
AbstractShapeTool.AbstractShapeControls
,RotationControls
,ScaleControls
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DesignableContainer
protected DesignableDelegate
protected Insets
protected DesignPanel
protected List<JComponent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle2D
getBoundingRect
(DesignPanel panel, DesignableDelegate delegate, List<JComponent> objects, Rectangle2D rect) Calculates a rectangle that is the smallest rectangle that encloses object's bounds, in logical (unzoomed) space.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, List<JComponent> selection) iterator()
void
A chance to paint the background of the selection area before the IHandles are paintedprotected Rectangle2D
Calculates a rectangle that is the smallest rectangle that encloses all selected object's bounds.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
panel
-
container
-
delegate
-
selection
-
insets
-
handles
-
-
Constructor Details
-
AbstractSelectionControls
public AbstractSelectionControls()
-
-
Method Details
-
initialize
public void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) - Specified by:
initialize
in interfaceISelectionControl
-
uninstall
public void uninstall()- Specified by:
uninstall
in interfaceISelectionControl
-
selectionRect
Calculates a rectangle that is the smallest rectangle that encloses all selected object's bounds. Rectangle is in logical (unzoomed) coordinates. -
getBoundingRect
public static Rectangle2D getBoundingRect(DesignPanel panel, DesignableDelegate delegate, List<JComponent> objects, Rectangle2D rect) Calculates a rectangle that is the smallest rectangle that encloses object's bounds, in logical (unzoomed) space. -
iterator
-
getInsets
Description copied from interface:ISelectionControl
These insets describe the area around the selection control in which its painting and handles are allowed to draw themselves. Should be in un-zoomed (logical) space.- Specified by:
getInsets
in interfaceISelectionControl
-
paintBackground
Description copied from interface:ISelectionControl
A chance to paint the background of the selection area before the IHandles are painted- Specified by:
paintBackground
in interfaceISelectionControl
-