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 SummaryFieldsModifier and TypeFieldDescriptionprotected DesignableContainerprotected DesignableDelegateprotected Insetsprotected DesignPanelprotected List<JComponent>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
panel
- 
container
- 
delegate
- 
selection
- 
insets
- 
handles
 
- 
- 
Constructor Details- 
AbstractSelectionControlspublic AbstractSelectionControls()
 
- 
- 
Method Details- 
initializepublic void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, List<JComponent> selection) - Specified by:
- initializein interface- ISelectionControl
 
- 
uninstallpublic void uninstall()- Specified by:
- uninstallin interface- ISelectionControl
 
- 
selectionRectCalculates a rectangle that is the smallest rectangle that encloses all selected object's bounds. Rectangle is in logical (unzoomed) coordinates.
- 
getBoundingRectpublic 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
- 
getInsetsDescription 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 interface- ISelectionControl
 
- 
paintBackgroundDescription copied from interface:ISelectionControlA chance to paint the background of the selection area before the IHandles are painted- Specified by:
- paintBackgroundin interface- ISelectionControl
 
 
-