de.cau.cs.kieler.synccharts.custom
Class StateLayout

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLayout
      extended by org.eclipse.draw2d.AbstractHintLayout
          extended by de.cau.cs.kieler.core.model.gmf.figures.layout.AbstractTableLayout
              extended by de.cau.cs.kieler.synccharts.custom.StateLayout
All Implemented Interfaces:
LayoutManager

public class StateLayout
extends AbstractTableLayout

This class is an extension of AbstractTableLayout, customized to StateFigure in synccharts.gmfgraph and its ecore model-object.

Rating red

Nested Class Summary
static class StateLayout.AbstractSyncChartsConfiguration
          A container for the class variables.
 
Field Summary
static int COND_HEIGHT
          minimal height for conditional states.
static int COND_WIDTH
          minimal width for conditional states.
static int ENTRYACTIONS
           
static int EXITACTIONS
           
static int INSIDEACTIONS
           
static int INTERFACEDECL
           
static int MIN_HEIGHT
          minimal height for normal states.
static int MIN_WIDTH
          minimal width for normal states.
static int POLYLINE
           
static int REGION
           
static int SIGNALS
           
static int STATELABEL
          the layout elements resp.
static int SUSPENDTRIGGER
           
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
StateLayout()
          Creates a state layout.
 
Method Summary
 ExtendedTable getCorrespondingLayout(IFigure stateFigure)
          
 Notifier getNotifier()
          Getter for the model element.
 void setCorrespondingLayout(ExtendedTable layout)
           
 void setModelElement(Notifier theModelElement)
           
 
Methods inherited from class de.cau.cs.kieler.core.model.gmf.figures.layout.AbstractTableLayout
calculateMinimumSize, calculatePreferredSize, checkNewSize, layout
 
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout
getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_HEIGHT

public static final int MIN_HEIGHT
minimal height for normal states.

See Also:
Constant Field Values

MIN_WIDTH

public static final int MIN_WIDTH
minimal width for normal states.

See Also:
Constant Field Values

COND_HEIGHT

public static final int COND_HEIGHT
minimal height for conditional states.

See Also:
Constant Field Values

COND_WIDTH

public static final int COND_WIDTH
minimal width for conditional states.

See Also:
Constant Field Values

STATELABEL

public static final int STATELABEL
the layout elements resp. the indices of the children

See Also:
Constant Field Values

POLYLINE

public static final int POLYLINE
See Also:
Constant Field Values

INTERFACEDECL

public static final int INTERFACEDECL
See Also:
Constant Field Values

SIGNALS

public static final int SIGNALS
See Also:
Constant Field Values

ENTRYACTIONS

public static final int ENTRYACTIONS
See Also:
Constant Field Values

INSIDEACTIONS

public static final int INSIDEACTIONS
See Also:
Constant Field Values

EXITACTIONS

public static final int EXITACTIONS
See Also:
Constant Field Values

SUSPENDTRIGGER

public static final int SUSPENDTRIGGER
See Also:
Constant Field Values

REGION

public static final int REGION
See Also:
Constant Field Values
Constructor Detail

StateLayout

public StateLayout()
Creates a state layout.

Parameters:
modelElementInput - the model element that will be layouted
Method Detail

getNotifier

public Notifier getNotifier()
Getter for the model element.

Returns:
the model element

getCorrespondingLayout

public ExtendedTable getCorrespondingLayout(IFigure stateFigure)

Overrides:
getCorrespondingLayout in class AbstractTableLayout
Parameters:
stateFigure - a state figure
Returns:
the layout for the given figure

setCorrespondingLayout

public void setCorrespondingLayout(ExtendedTable layout)

setModelElement

public void setModelElement(Notifier theModelElement)