de.uni_paderborn.fujaba.layout
Class MrLayout

java.lang.Object
  extended byde.uni_paderborn.fujaba.layout.MrLayout

public class MrLayout
extends java.lang.Object

Singleton class provided for invoking the layouting process

Version:
$Revision: 1.34 $
Author:
$Author: lowende $

Field Summary
static int CLASS_DIAGRAM_LAYOUT
          UMLAttribute: '+ CLASS_DIAGRAM_LAYOUT : Integer = 3'
static int CONTROL_FLOW_LAYOUT
          UMLAttribute: '+ CONTROL_FLOW_LAYOUT : Integer = 2'
static int SPRING_EMBEDDER_LAYOUT
          UMLAttribute: '+ SPRING_EMBEDDER_LAYOUT : Integer = 1'
static int TREE_LAYOUT
          UMLAttribute: '+ TREE_LAYOUT : Integer = 0'
 
Method Summary
static MrLayout get()
          Use this method to get a reference to singleton class MrLayout
 AbstractLayouter getMyLayouter()
          Get the myLayouter attribute of the MrLayout object
 int getWhichActivityDiagramLayout()
          Get current selected Layout for Activity Diagrams
 int getWhichLayout()
          Get current selected Layout
 void reLayout(FSAContainer currentCanvas)
          The function which starts the Layout process on the current canvas
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 void setMyLayouter(AbstractLayouter myLayouter)
          Sets the myLayouter attribute of the MrLayout object
 int setWhichActivityDiagramLayout(int whichActivityDiagramLayout)
          Select an alternative Layouter for Activity Diagrams
 int setWhichLayout(int whichLayout)
          Select an alternative Layouter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE_LAYOUT

public static final int TREE_LAYOUT
UMLAttribute: '+ TREE_LAYOUT : Integer = 0'

See Also:
Constant Field Values

SPRING_EMBEDDER_LAYOUT

public static final int SPRING_EMBEDDER_LAYOUT
UMLAttribute: '+ SPRING_EMBEDDER_LAYOUT : Integer = 1'

See Also:
Constant Field Values

CONTROL_FLOW_LAYOUT

public static final int CONTROL_FLOW_LAYOUT
UMLAttribute: '+ CONTROL_FLOW_LAYOUT : Integer = 2'

See Also:
Constant Field Values

CLASS_DIAGRAM_LAYOUT

public static final int CLASS_DIAGRAM_LAYOUT
UMLAttribute: '+ CLASS_DIAGRAM_LAYOUT : Integer = 3'

See Also:
Constant Field Values
Method Detail

get

public static MrLayout get()
Use this method to get a reference to singleton class MrLayout

Returns:
reference to singleton instance of MrLayout

reLayout

public void reLayout(FSAContainer currentCanvas)
The function which starts the Layout process on the current canvas

Parameters:
currentCanvas - the Canvas which to be layouted

getWhichLayout

public int getWhichLayout()
Get current selected Layout

Returns:
Currently selected Layouter

setWhichLayout

public int setWhichLayout(int whichLayout)
Select an alternative Layouter

Parameters:
whichLayout - The new Layouter to be set
Returns:
The new selected Layouter

getWhichActivityDiagramLayout

public int getWhichActivityDiagramLayout()
Get current selected Layout for Activity Diagrams

Returns:
Currently selected Layouter

setWhichActivityDiagramLayout

public int setWhichActivityDiagramLayout(int whichActivityDiagramLayout)
Select an alternative Layouter for Activity Diagrams

Parameters:
whichActivityDiagramLayout - The new Layouter to be set
Returns:
The new selected Layouter

getMyLayouter

public AbstractLayouter getMyLayouter()
Get the myLayouter attribute of the MrLayout object

Returns:
The myLayouter value

setMyLayouter

public void setMyLayouter(AbstractLayouter myLayouter)
Sets the myLayouter attribute of the MrLayout object

Parameters:
myLayouter - The new myLayouter value

removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.