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 DesignableContainerprotected DesignableDelegateprotected Insetsprotected DesignPanelprotected List<JComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle2DgetBoundingRect(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.voidinitialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) iterator()voidA chance to paint the background of the selection area before the IHandles are paintedprotected Rectangle2DCalculates a rectangle that is the smallest rectangle that encloses all selected object's bounds.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initializein interfaceISelectionControl
-
uninstall
public void uninstall()- Specified by:
uninstallin 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:ISelectionControlThese 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:
getInsetsin interfaceISelectionControl
-
paintBackground
Description copied from interface:ISelectionControlA chance to paint the background of the selection area before the IHandles are painted- Specified by:
paintBackgroundin interfaceISelectionControl
-