de.frag.umlplugin.guilayout
Class FlexLayout.Element

java.lang.Object
  extended by 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.


Field Summary
 java.awt.Component component
           
 FlexConstraints constraints
           
 
Constructor Summary
FlexLayout.Element(java.awt.Component component, FlexConstraints constraints)
          Construct a new Element.
 
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
 

Field Detail

component

public final java.awt.Component component

constraints

public final FlexConstraints constraints
Constructor Detail

FlexLayout.Element

public FlexLayout.Element(@NotNull
                          java.awt.Component component,
                          @NotNull
                          FlexConstraints constraints)
Construct a new Element.

Parameters:
component - component
constraints - FlexConstraints of this component
Method Detail

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 space
y - y-coordinate of upper left corner of available space
width - width of available space
height - height of available space