de.frag.umlplugin.guilayout
Class FlexLayout.Element
java.lang.Object
de.frag.umlplugin.guilayout.FlexLayout.Element
- Enclosing class:
- FlexLayout
protected class FlexLayout.Element
- extends java.lang.Object
An Element is a component and its associated FlexConstraints object.
Method Summary |
void |
sizeComponent(int x,
int y,
int width,
int height)
Set the bounds of this element with respect to the given available
space. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
component
public final java.awt.Component component
constraints
public final FlexConstraints constraints
FlexLayout.Element
public FlexLayout.Element(@NotNull
java.awt.Component component,
@NotNull
FlexConstraints constraints)
- Construct a new Element.
- Parameters:
component
- componentconstraints
- FlexConstraints of this component
sizeComponent
public void sizeComponent(int x,
int y,
int width,
int height)
- Set the bounds of this element with respect to the given available
space.
- Parameters:
x
- x-coordinate of upper left corner of available spacey
- y-coordinate of upper left corner of available spacewidth
- width of available spaceheight
- height of available space