|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiouml.model.DefaultDiagramViewBuilder
Default implementation of DiagramViewBuilder.
| Field Summary | |
protected org.apache.log4j.Category |
log
|
| Constructor Summary | |
DefaultDiagramViewBuilder()
|
|
| Method Summary | |
protected void |
buildNodes(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
built all nodes and add them into compartment |
static void |
calcAttachmentPoints(java.awt.Rectangle r1,
java.awt.Rectangle r2,
java.awt.Point p1,
java.awt.Point p2,
int offset)
Calculates the attachment points to paint relation between two images described by the specified rectangles. |
CompositeView |
createCompartmentView(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
|
DiagramViewOptions |
createDefaultDiagramViewOptions()
|
CompositeView |
createDiagramView(Diagram diagram,
java.awt.Graphics g)
Creates the diagram view |
CompositeView |
createEdgeView(Edge edge,
DiagramViewOptions options,
java.awt.Graphics g)
|
CompositeView |
createEquivalentNodeGroupView(EquivalentNodeGroup group,
DiagramViewOptions options,
java.awt.Graphics g)
Creates view for equivalent node grpoup. |
protected boolean |
createNodeCoreView(CompositeView container,
Node node,
DiagramViewOptions options,
java.awt.Graphics g)
|
CompositeView |
createNodeView(Node node,
DiagramViewOptions options,
java.awt.Graphics g)
|
protected boolean |
createNoteView(CompositeView container,
Node node,
DiagramViewOptions options,
java.awt.Graphics g)
|
protected CompositeView |
doCreateCompartmentView(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
Creates compartment view. |
javax.swing.Icon |
getIcon(java.lang.Class type)
Default implimentation of the method. |
protected javax.swing.Icon |
getIcon(java.lang.Class type,
java.lang.Class resourceRoot)
|
void |
hideElement(DiagramElement element)
|
boolean |
isReaction(Base kernel)
|
void |
moveNode(Node node,
java.awt.Point newLocation)
|
static int |
proportion(int L,
int l)
|
void |
removeElement(DiagramElement element)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.log4j.Category log
| Constructor Detail |
public DefaultDiagramViewBuilder()
| Method Detail |
public DiagramViewOptions createDefaultDiagramViewOptions()
createDefaultDiagramViewOptions in interface DiagramViewBuilderpublic javax.swing.Icon getIcon(java.lang.Class type)
getIcon in interface DiagramViewBuilder
protected javax.swing.Icon getIcon(java.lang.Class type,
java.lang.Class resourceRoot)
public CompositeView createDiagramView(Diagram diagram,
java.awt.Graphics g)
createDiagramView in interface DiagramViewBuilder
public CompositeView createCompartmentView(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
createCompartmentView in interface DiagramViewBuilder
protected CompositeView doCreateCompartmentView(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
public CompositeView createEquivalentNodeGroupView(EquivalentNodeGroup group,
DiagramViewOptions options,
java.awt.Graphics g)
protected void buildNodes(Compartment compartment,
DiagramViewOptions options,
java.awt.Graphics g)
public boolean isReaction(Base kernel)
public CompositeView createNodeView(Node node,
DiagramViewOptions options,
java.awt.Graphics g)
createNodeView in interface DiagramViewBuilder
protected boolean createNodeCoreView(CompositeView container,
Node node,
DiagramViewOptions options,
java.awt.Graphics g)
protected boolean createNoteView(CompositeView container,
Node node,
DiagramViewOptions options,
java.awt.Graphics g)
public CompositeView createEdgeView(Edge edge,
DiagramViewOptions options,
java.awt.Graphics g)
createEdgeView in interface DiagramViewBuilderpublic void hideElement(DiagramElement element)
hideElement in interface DiagramViewBuilderpublic void removeElement(DiagramElement element)
removeElement in interface DiagramViewBuilder
public void moveNode(Node node,
java.awt.Point newLocation)
moveNode in interface DiagramViewBuilder
public static int proportion(int L,
int l)
public static void calcAttachmentPoints(java.awt.Rectangle r1,
java.awt.Rectangle r2,
java.awt.Point p1,
java.awt.Point p2,
int offset)
r1 - the minimal rectangle containing the first imager2 - the minimal rectangle containing the second imagep1 - the attchment point for the first imagep2 - the attchment point for the second imageoffset - the distance between the attachment point
and minimal rectangle
Two situations are possible:
1 situation 2 situation
________ ______ _______
| | | | | |
| | _______ | | | |
| |___| | |______| |_______|
|________| | | \ |
|_______| \ _______ __|_____
| | | |
| | | |
|_______| |________|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||