leon.view.win.swing
Class LySwingConstraint
java.lang.Object
leon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingConstraint
- All Implemented Interfaces:
- LyGraphicalComponent, LyGraphicalConstraint, LyViewComponent, LyFreeInterface, LySwingComponent
public class LySwingConstraint
- extends LySwingObject
- implements LyGraphicalConstraint
This class implements the internal description of a Constraint object as described in the dtd.
A constraint allows to specify for a given graphical component the way it will be placed
inside its parent (to be specific, the graphical component that contains it).
- See Also:
LyComponent
Field Summary |
static java.lang.String |
__VERSION
|
Method Summary |
static java.awt.GridBagConstraints |
buildConstraint(LyComponent dataNode,
LyConstraint requestedConstraint,
java.awt.GridBagConstraints defaultGB)
Builds a contraint object for the layout of a label or component. |
static void |
dump(java.awt.GridBagConstraints c)
Prints the content of the given GridBagConstraints (useful for debug). |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LySwingConstraint
public LySwingConstraint(LyConstraint constraint)
- Class constructor of a constraint object.
- Parameters:
constraint
- a constraint object that is applied to a swing component.
buildConstraint
public static java.awt.GridBagConstraints buildConstraint(LyComponent dataNode,
LyConstraint requestedConstraint,
java.awt.GridBagConstraints defaultGB)
- Builds a contraint object for the layout of a label or component. The constraints are the
same for every data node component. The only change that appears is on the
requestedConstraint
parameter which applies another constraint to the original. If no
requested constraint is specified (its value is null
), then the default
GridBagConstaint is returned.
- Parameters:
dataNode
- the component to build its constraints, not used in this
implementationrequestedConstraint
- the constraints to apply on the dataNode componentdefaultGB
- a default GridBagConstraint to use if no other constraint is
usable
- Returns:
- the constraints of the specified component
dump
public static void dump(java.awt.GridBagConstraints c)
- Prints the content of the given GridBagConstraints (useful for debug).
- Parameters:
c
- the GridBagConstraints to dump
Website: W4 S.A., contact us: support@w4global.com