HEADER

biouml.model
Class DefaultSemanticController

Direct Known Subclasses:
PathwaySemanticController

public class DefaultSemanticController
implements SemanticController

todo implement

Method Summary
 booleancanAccept(Compartment compartment, Class c)
           
 booleancanAccept(Compartment compartment, DiagramElement de)
           
 DiagramElementcreateInstance(Compartment compartment, Class type, Point point, ViewEditorPane viewEditor)
           
 booleanisResizable(DiagramElement diagramElement)
           
 Dimensionmove(Node node, Compartment newParent, Dimension offset)
          Moves the specified diagram node to the specified position.
 voidmoveEdges(Node oldNode, Node newNode)
           
 voidmoveNode(Node oldNode, Node newNode)
           
 booleanremove(DiagramElement de)
          Removes the diagram element and all related edges.

Method Detail

canAccept

public boolean canAccept(Compartment compartment, Class c)

canAccept

public boolean canAccept(Compartment compartment, DiagramElement de)

createInstance

public DiagramElement createInstance(Compartment compartment, Class type, Point point, ViewEditorPane viewEditor)

isResizable

public boolean isResizable(DiagramElement diagramElement)
returns whether a specified diagram element can be resized.

move

public Dimension move(Node node, Compartment newParent, Dimension offset)
throws java.lang.Exception
Moves the specified diagram node to the specified position. If neccessary compartment can be changed.
returns the actual distance on which the diagram node was moved.

moveEdges

public void moveEdges(Node oldNode, Node newNode)
throws java.lang.Exception

moveNode

public void moveNode(Node oldNode, Node newNode)
throws java.lang.Exception

remove

public boolean remove(DiagramElement de)
throws java.lang.Exception
Removes the diagram element and all related edges.
pending if compartment is removed we should remove outer edges for compartment nodes

FOOTER

BOTTOM