de.cau.cs.kieler.core.model.gmf.figures.layout.container
Class ExtendedTable

java.lang.Object
  extended by de.cau.cs.kieler.core.model.gmf.figures.layout.container.ExtendedTable

public class ExtendedTable
extends Object

An instance of this class acts as a container for the layoutinformation.

Rating red

Field Summary
 int adjustableCanvas
          Defines the one cell which shall be adjustable resp.
static int CENTER
          Constants defining the alignment
 int[] horizontalAlignment
          Provides the alignment for every row and for the whole table.
static int JUSTIFY
           
 int padding
          The padding defines the space between the outer border and the content, atm has only effect on separators.
static int SEPARATOR
           
 Cell[][] table
          The table-array holds the single layout-cells and provides the structure of the table-layout.
 int verticalAlignment
           
 
Constructor Summary
ExtendedTable()
           
 
Method Summary
static ExtendedTable build()
          Some kind of fluent interface/builder pattern for constructing layouts
 int getAdjustableCanvas()
           
 int getMinHeight()
           
 int getMinWidth()
           
 int getVerticalAlignment()
           
 boolean isUserResizeable()
           
 void padding(int padding)
           
 ExtendedTable setAdjustableCanvas(int adjustableCanvas)
           
 ExtendedTable setMinHeight(int minHeight)
           
 ExtendedTable setMinWidth(int minWidth)
           
 ExtendedTable setUserResizeable(boolean userResizeable)
           
 ExtendedTable setVerticalAlignment(int verticalAlignment)
           
 ExtendedTable tableLayout(int[][] tableLayout)
          Initializes the class-variables according to the given table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final int CENTER
Constants defining the alignment

See Also:
Constant Field Values

JUSTIFY

public static final int JUSTIFY
See Also:
Constant Field Values

SEPARATOR

public static final int SEPARATOR
See Also:
Constant Field Values

table

public Cell[][] table
The table-array holds the single layout-cells and provides the structure of the table-layout.


horizontalAlignment

public int[] horizontalAlignment
Provides the alignment for every row and for the whole table.


verticalAlignment

public int verticalAlignment

adjustableCanvas

public int adjustableCanvas
Defines the one cell which shall be adjustable resp. variable in size.


padding

public int padding
The padding defines the space between the outer border and the content, atm has only effect on separators.

Constructor Detail

ExtendedTable

public ExtendedTable()
Method Detail

build

public static ExtendedTable build()
Some kind of fluent interface/builder pattern for constructing layouts


tableLayout

public ExtendedTable tableLayout(int[][] tableLayout)
Initializes the class-variables according to the given table.


getMinHeight

public int getMinHeight()

setMinHeight

public ExtendedTable setMinHeight(int minHeight)

getMinWidth

public int getMinWidth()

setMinWidth

public ExtendedTable setMinWidth(int minWidth)

isUserResizeable

public boolean isUserResizeable()

setUserResizeable

public ExtendedTable setUserResizeable(boolean userResizeable)

getVerticalAlignment

public int getVerticalAlignment()

setVerticalAlignment

public ExtendedTable setVerticalAlignment(int verticalAlignment)

getAdjustableCanvas

public int getAdjustableCanvas()

setAdjustableCanvas

public ExtendedTable setAdjustableCanvas(int adjustableCanvas)

padding

public void padding(int padding)