|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.layout.classdiag.ClassdiagramNode
This class represents a node in the classdiagram (a class, interface or package). The class has been taken from Argo UML source code.
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 FSAPanel |
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. |
static 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
No comment provided by developer, please add a comment to improve documentation. |
private int |
rank
Attribute _rank represents the current rank of this node. |
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. |
Constructor Summary | |
ClassdiagramNode(FSAPanel f)
Operation ClassdiagramNode creates a new ClassdiagramNode. |
Method Summary | |
void |
addDownlink(ClassdiagramNode newDownlink)
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 newUplink)
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. |
FSAPanel |
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. |
int |
getRealRank()
Get the realRank attribute of the ClassdiagramNode object |
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. |
boolean |
isMovable()
a node is movable when it hasn't got any up- or downlinks. |
(package private) boolean |
isPackage()
Check if this node is associated with a package. |
void |
setColumn(int newColumn)
Operation setColumn changes the value of the attribute _column. |
void |
setFigure(FSAPanel newFigure)
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 newRank)
Operation setRank changes the value of the attribute _rank. |
void |
setWeight(float w)
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 final int NORANK
private int rank
public static final int NOCOLUMN
private int column
private java.util.Vector uplinks
private java.util.Vector downlinks
private FSAPanel figure
private float weight
private boolean movable
private int placementHint
Constructor Detail |
public ClassdiagramNode(FSAPanel f)
f
- 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 getRealRank()
public int getRank()
public void setRank(int newRank)
newRank
- represents the new value of _rank.public void addRank(int n)
n
- The value to add.public int getColumn()
public void setColumn(int newColumn)
newColumn
- represents the new value of _column.public java.util.Vector getUplinks()
public ClassdiagramNode getUplink(int i)
i
- The index of this uplink.
public void addUplink(ClassdiagramNode newUplink)
newUplink
- represents the new uplinks.public java.util.Vector getDownlinks()
public ClassdiagramNode getDownlink(int i)
i
- The index of this downlink.
public void addDownlink(ClassdiagramNode newDownlink)
newDownlink
- Represents the new value of _downlinks.public FSAPanel getFigure()
public void setFigure(FSAPanel newFigure)
newFigure
- represents the new value of _figure.public float getWeight()
public void setWeight(float w)
w
- The new weight of this node.public 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 |