|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.diagram.static_structure.layout.ClassdiagramNode
This class represents a node in the classdiagram (a class, interface or package).
Field Summary | |
private int |
_column
Attribute _column represents the current column of this node. |
private java.util.Vector |
_downlinks
Attribute _downlinks represents the links I consider as an 'downlink'. |
private org.tigris.gef.presentation.FigNode |
_figure
Attribute _figure represents the figure, that this ClassdiagramNode represents during the layout process. |
private boolean |
_movable
a Node is movable when it has associations and no up- or downlinks. |
private int |
_rank
Attribute _rank represents the current rank of this node. |
private java.util.Vector |
_sidelinks
Sidelinks are basically associations. |
private java.util.Vector |
_uplinks
Attribute _uplinks represents the links I consider as an 'uplink'. |
private float |
_weight
This attributes stores the 'weight' of this node. |
int |
NOCOLUMN
Constant to be used as an initializer when this node is not placed at an column. |
static int |
NORANK
Constant to be used as an initializer when this node has no rank assigned yet. |
private int |
placementHint
|
Constructor Summary | |
ClassdiagramNode(org.tigris.gef.presentation.FigNode figure)
Operation ClassdiagramNode creates a new ClassdiagramNode. |
Method Summary | |
void |
addDownlink(ClassdiagramNode new_downlink)
Operation setDownlinks changes the value of the attribute _downlinks. |
void |
addRank(int n)
Add a constant to the rank of this node. |
void |
addUplink(ClassdiagramNode new_uplink)
Add an uplink to this node. |
int |
getColumn()
Operation getColumn returns the value of the attribute _column. |
ClassdiagramNode |
getDownlink(int i)
Get the downlink for a given index. |
java.util.Vector |
getDownlinks()
Operation getDownlinks returns the value of the attribute _downlinks. |
org.tigris.gef.presentation.FigNode |
getFigure()
Operation getFigure returns the value of the attribute _figure. |
java.awt.Point |
getLocation()
Operation getLocation returns the location of the associated figure in the diagram. |
int |
getPlacementHint()
get the current placementhint. |
int |
getRank()
Compute or just return the rank of this node. |
java.awt.Dimension |
getSize()
Operation getSize returns the size of the figure associated with this layout node. |
ClassdiagramNode |
getUplink(int i)
Get the uplink for a given index. |
java.util.Vector |
getUplinks()
Operation getUplinks returns the value of the attribute _uplinks. |
float |
getWeight()
Return the weight of this node. |
(package private) boolean |
isMovable()
a node is movable when it hasn't got any up- or downlinks, but sidelinks |
(package private) boolean |
isPackage()
Check if this node is associated with a package. |
void |
setColumn(int new_column)
Operation setColumn changes the value of the attribute _column. |
void |
setFigure(org.tigris.gef.presentation.FigNode new_figure)
Operation setFigure changes the value of the attribute _figure. |
void |
setLocation(java.awt.Point newLocation)
Operation setLocation set the new location of the associated figure in the diagram. |
void |
setPlacementHint(int hint)
A placementhint gives an indication where it might be feasible to place this node. |
void |
setRank(int new_rank)
Operation setRank changes the value of the attribute _rank. |
void |
setWeight(float weight)
Set a new weight for this node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int NORANK
private int _rank
public int NOCOLUMN
private int _column
private java.util.Vector _uplinks
private java.util.Vector _downlinks
private java.util.Vector _sidelinks
isMovable()
private org.tigris.gef.presentation.FigNode _figure
private float _weight
private boolean _movable
private int placementHint
Constructor Detail |
public ClassdiagramNode(org.tigris.gef.presentation.FigNode figure)
figure
- represents the figure in the diagram, that
peers this layout node.Method Detail |
public java.awt.Dimension getSize()
getSize
in interface LayoutedNode
public java.awt.Point getLocation()
getLocation
in interface LayoutedNode
public void setLocation(java.awt.Point newLocation)
setLocation
in interface LayoutedNode
newLocation
- represents the new location for this figure.boolean isPackage()
public int getRank()
public void setRank(int new_rank)
new_rank
- represents the new value of _rank.public void addRank(int n)
n
- The value to add.public int getColumn()
public void setColumn(int new_column)
new_column
- represents the new value of _column.public java.util.Vector getUplinks()
public ClassdiagramNode getUplink(int i)
public void addUplink(ClassdiagramNode new_uplink)
new_uplink
- represents the new uplinks.public java.util.Vector getDownlinks()
public ClassdiagramNode getDownlink(int i)
public void addDownlink(ClassdiagramNode new_downlink)
public org.tigris.gef.presentation.FigNode getFigure()
public void setFigure(org.tigris.gef.presentation.FigNode new_figure)
new_figure
- represents the new value of _figure.public float getWeight()
public void setWeight(float weight)
weight
- The new weight of this node.boolean isMovable()
public void setPlacementHint(int hint)
hint
- x coordinate of the desired placementpublic int getPlacementHint()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |