Class LayoutManipulator
java.lang.Object
com.inductiveautomation.factorypmi.designer.workspace.LayoutManipulator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionadd(VisionContainer panel, JComponent comp) Adds the component to the panel.static booleancomponentsAreSiblings(List<JComponent> components) Checks to see if all of the components are siblings (have the same .getParent()) and that there is at least 1 component in the liststatic voidrepositionComponent(JComponent component, Rectangle2D newPosition) static voidrepositionComponent(JComponent component, Rectangle2D newPosition, boolean delayValidation) Moves the given component to the specified rectangle, which should be relative to the component's parent.static voidsetPositionDelta(JComponent comp, double dx, double dy) Moves a component by dx, dystatic void
- 
Field Details- 
COLUMNpublic static final int COLUMN- See Also:
 
- 
ROWpublic static final int ROW- See Also:
 
- 
HORIZONTALpublic static final int HORIZONTAL- See Also:
 
- 
VERTICALpublic static final int VERTICAL- See Also:
 
 
- 
- 
Constructor Details- 
LayoutManipulator
 
- 
- 
Method Details- 
repositionComponent
- 
repositionComponentpublic static void repositionComponent(JComponent component, Rectangle2D newPosition, boolean delayValidation) Moves the given component to the specified rectangle, which should be relative to the component's parent.
- 
setPositionDeltaMoves a component by dx, dy
- 
addAdds the component to the panel. Component should already have its location set on it, but it may be then adjusted to fit within its parent. Will startup the component if it is a ComponentLifecycle
- 
validateRoot
- 
componentsAreSiblingsChecks to see if all of the components are siblings (have the same .getParent()) and that there is at least 1 component in the list
 
-