Class AbstractSelectionControls
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.designable.controls.AbstractSelectionControls
 
- 
- All Implemented Interfaces:
- ISelectionControl,- java.lang.Iterable<IHandle>
 - Direct Known Subclasses:
- AbstractShapeTool.AbstractShapeControls,- RotationControls,- ScaleControls
 
 public abstract class AbstractSelectionControls extends java.lang.Object implements ISelectionControl 
- 
- 
Field SummaryFields Modifier and Type Field Description protected DesignableContainercontainerprotected DesignableDelegatedelegateprotected java.util.List<IHandle>handlesprotected java.awt.Insetsinsetsprotected DesignPanelpanelprotected java.util.List<javax.swing.JComponent>selection
 - 
Constructor SummaryConstructors Constructor Description AbstractSelectionControls()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.geom.Rectangle2DgetBoundingRect(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.InsetsgetInsets()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, java.util.List<javax.swing.JComponent> selection)java.util.Iterator<IHandle>iterator()voidpaintBackground(java.awt.Graphics2D g)A chance to paint the background of the selection area before the IHandles are paintedprotected java.awt.geom.Rectangle2DselectionRect()Calculates a rectangle that is the smallest rectangle that encloses all selected object's bounds.voiduninstall()
 
- 
- 
- 
Field Detail- 
panelprotected DesignPanel panel 
 - 
containerprotected DesignableContainer container 
 - 
delegateprotected DesignableDelegate delegate 
 - 
selectionprotected java.util.List<javax.swing.JComponent> selection 
 - 
insetsprotected java.awt.Insets insets 
 - 
handlesprotected java.util.List<IHandle> handles 
 
- 
 - 
Method Detail- 
initializepublic void initialize(DesignPanel panel, DesignableContainer container, DesignableDelegate delegate, java.util.List<javax.swing.JComponent> selection) - Specified by:
- initializein interface- ISelectionControl
 
 - 
uninstallpublic void uninstall() - Specified by:
- uninstallin interface- ISelectionControl
 
 - 
selectionRectprotected java.awt.geom.Rectangle2D selectionRect() Calculates a rectangle that is the smallest rectangle that encloses all selected object's bounds. Rectangle is in logical (unzoomed) coordinates.
 - 
getBoundingRectpublic 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.
 - 
iteratorpublic java.util.Iterator<IHandle> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<IHandle>
 
 - 
getInsetspublic java.awt.Insets 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 interface- ISelectionControl
 
 - 
paintBackgroundpublic void paintBackground(java.awt.Graphics2D g) Description copied from interface:ISelectionControlA chance to paint the background of the selection area before the IHandles are painted- Specified by:
- paintBackgroundin interface- ISelectionControl
 
 
- 
 
-