public class LayoutManipulator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN |
static int |
HORIZONTAL |
static int |
ROW |
static int |
VERTICAL |
Constructor and Description |
---|
LayoutManipulator(VisionDesignerImpl context) |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
add(VisionContainer panel,
javax.swing.JComponent comp)
Adds the component to the panel.
|
static boolean |
componentsAreSiblings(java.util.List<javax.swing.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 list
|
static void |
repositionComponent(javax.swing.JComponent component,
java.awt.geom.Rectangle2D newPosition) |
static void |
repositionComponent(javax.swing.JComponent component,
java.awt.geom.Rectangle2D newPosition,
boolean delayValidation)
Moves the given component to the specified rectangle, which should be relative to the component's parent.
|
static void |
setPositionDelta(javax.swing.JComponent comp,
double dx,
double dy)
Moves a component by dx, dy
|
static void |
validateRoot(java.awt.Component c) |
public static final int COLUMN
public static final int ROW
public static final int HORIZONTAL
public static final int VERTICAL
public LayoutManipulator(VisionDesignerImpl context)
public static void repositionComponent(javax.swing.JComponent component, java.awt.geom.Rectangle2D newPosition)
public static void repositionComponent(javax.swing.JComponent component, java.awt.geom.Rectangle2D newPosition, boolean delayValidation)
public static void setPositionDelta(javax.swing.JComponent comp, double dx, double dy)
public java.awt.Component add(VisionContainer panel, javax.swing.JComponent comp)
public static void validateRoot(java.awt.Component c)
public static boolean componentsAreSiblings(java.util.List<javax.swing.JComponent> components)