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 $

Nested Class Summary
private  class MrLayout.LayoutThread
          This inner classes starts if called a new layout threat based on the selected layouter
 
Field Summary
static int CLASS_DIAGRAM_LAYOUT
          UMLAttribute: '+ CLASS_DIAGRAM_LAYOUT : Integer = 3'
static int CONTROL_FLOW_LAYOUT
          UMLAttribute: '+ CONTROL_FLOW_LAYOUT : Integer = 2'
(package private) static org.apache.log4j.Logger log
          log4j logging
private  AbstractLayouter myLayouter
          1 myLayouter 1 MrLayout -------------------- AbstractLayouter
private static MrLayout myMrLayout
          No comment provided by developer, please add a comment to improve documentation.
static int SPRING_EMBEDDER_LAYOUT
          UMLAttribute: '+ SPRING_EMBEDDER_LAYOUT : Integer = 1'
static int TREE_LAYOUT
          UMLAttribute: '+ TREE_LAYOUT : Integer = 0'
private  int whichActivityDiagramLayout
          No comment provided by developer, please add a comment to improve documentation.
private  int whichLayout
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
private MrLayout()
          Constructor of Class MrLayout
 
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

log

static final transient org.apache.log4j.Logger log
log4j logging


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

myMrLayout

private static MrLayout myMrLayout
No comment provided by developer, please add a comment to improve documentation.


whichLayout

private int whichLayout
No comment provided by developer, please add a comment to improve documentation.


whichActivityDiagramLayout

private int whichActivityDiagramLayout
No comment provided by developer, please add a comment to improve documentation.


myLayouter

private AbstractLayouter myLayouter
1 myLayouter 1 MrLayout -------------------- AbstractLayouter

Constructor Detail

MrLayout

private MrLayout()
Constructor of Class MrLayout

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.