de.uni_paderborn.fujaba.app
Class FrameDecorator

java.lang.Object
  extended byde.uni_paderborn.fujaba.app.FrameDecorator
Direct Known Subclasses:
FrameDecoratorPackageDiagram, FrameDecoratorUMLActivityDiagram, FrameDecoratorUMLClassDiagram, FrameDecoratorUMLStatechart, FrameDecoratorUMLStoryPattern

public abstract class FrameDecorator
extends java.lang.Object

The task of this class is to provide some capsule for functions, which needed to be implemented in the case of creating some new class of FUJABA diagrams, as they are a) creating / showing a toolbar (every kind of diagram got one of its own) b) adding items of a diagram to the tree node row at left side of FUJABA (diagram has to manage the order and kinds of items and build up some tree structure of them) Methods and attributes of this class should be helpful to manage those tasks in a more generic way, while abstract methods should provide a reminder for childs of what to implement.

Associations

            0..1      Assoc      0..n
 FrameMain --------------------------- FrameDecorator
            frameMain      decorators
 

Version:
$Revision: 1.48 $ Move to UML plugin
Author:
$Author: schneider $

Constructor Summary
FrameDecorator()
           
 
Method Summary
abstract  void enterDiagram(ASGDiagram diag)
          Checks wether decorator is responsible for the given diagram.
 java.lang.String getDestTabTitle()
          Get the destTabTitle attribute of the FrameDecorator object
 FrameMain getFrameMain()
          Get the frameMain attribute of the FrameDecorator object
 javax.swing.tree.TreeCellRenderer getTreeCellRenderer()
          Get the treeCellRenderer attribute of the FrameDecorator class
 javax.swing.tree.DefaultMutableTreeNode getTreeNode(ASGDiagram diag)
          Get the treeNode attribute of the FrameDecorator object
abstract  javax.swing.tree.DefaultMutableTreeNode getTreeNode(java.util.Enumeration diagEnum)
          To be overridden by deriving classes and enables each type of diagram to set its own location in Fujabas diagrams tree.
abstract  void leaveDiagram(ASGDiagram diag)
          Checks wether decorator is responsible for the given diagram.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 boolean setFrameMain(FrameMain value)
          Sets the frameMain attribute of the FrameDecorator object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameDecorator

public FrameDecorator()
Method Detail

enterDiagram

public abstract void enterDiagram(ASGDiagram diag)
Checks wether decorator is responsible for the given diagram. Changes the visibility of menus/toolbars. Called, if diagram is entered.

Parameters:
diag - No description provided

leaveDiagram

public abstract void leaveDiagram(ASGDiagram diag)
Checks wether decorator is responsible for the given diagram. Changes the visibility of menus/toolbars. Called, if diagram was left.

Parameters:
diag - No description provided

getTreeNode

public abstract javax.swing.tree.DefaultMutableTreeNode getTreeNode(java.util.Enumeration diagEnum)
To be overridden by deriving classes and enables each type of diagram to set its own location in Fujabas diagrams tree.

Parameters:
diagEnum - No description provided
Returns:
The treeNode value

getTreeNode

public javax.swing.tree.DefaultMutableTreeNode getTreeNode(ASGDiagram diag)
Get the treeNode attribute of the FrameDecorator object

Parameters:
diag - No description provided
Returns:
The treeNode value

getTreeCellRenderer

public javax.swing.tree.TreeCellRenderer getTreeCellRenderer()
Get the treeCellRenderer attribute of the FrameDecorator class

Returns:
The treeCellRenderer value

getDestTabTitle

public java.lang.String getDestTabTitle()
Get the destTabTitle attribute of the FrameDecorator object

Returns:
The destTabTitle value

setFrameMain

public boolean setFrameMain(FrameMain value)
Sets the frameMain attribute of the FrameDecorator object

Parameters:
value - The new frameMain value
Returns:
No description provided

getFrameMain

public FrameMain getFrameMain()
Get the frameMain attribute of the FrameDecorator object

Returns:
The frameMain value

removeYou

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