All Packages Class Hierarchy This Package Previous Next Index
Class vnet.display.GraphGeometryCircle
java.lang.Object
|
+----java.util.Observable
|
+----vnet.display.GraphGeometry
|
+----vnet.display.GraphGeometryCircle
- public class GraphGeometryCircle
- extends GraphGeometry
Class to manage the output layout of a net, that disposes in a circular form.
It is create concentric circles for the nodes; in this way, the nodes A-P can
be in a first circle, the nodes AA-AP, in the next one, and so on.
- Version:
- 0.2, august-1997
- Author:
- LuisM Pena
-
GraphGeometryCircle()
-
-
getPosition(NodeId)
- Gets the position (relative position, between 0 and 1) for a Node
-
getRadiusX()
- Gets the radiusX (relative size, between 0 and 1) for each node.
-
getRadiusY()
- Gets the radiusY (relative size, between 0 and 1) for each node.
-
reset(NodeId[])
- A geometry can calculate the position of a node in function of the nodes
already present.
GraphGeometryCircle
public GraphGeometryCircle()
reset
public synchronized void reset(NodeId nodes[])
- A geometry can calculate the position of a node in function of the nodes
already present. This method allows to say to the GeometryClass which
are the nodes.
- Overrides:
- reset in class GraphGeometry
getRadiusX
public synchronized double getRadiusX()
- Gets the radiusX (relative size, between 0 and 1) for each node.
- Returns:
- the radiusX of the nodes
- Overrides:
- getRadiusX in class GraphGeometry
getRadiusY
public synchronized double getRadiusY()
- Gets the radiusY (relative size, between 0 and 1) for each node.
- Returns:
- the radiusY of the nodes
- Overrides:
- getRadiusY in class GraphGeometry
getPosition
public GraphPoint getPosition(NodeId Id)
- Gets the position (relative position, between 0 and 1) for a Node
- Parameters:
- Id - the Node identity
- Returns:
- the position for the node
- Overrides:
- getPosition in class GraphGeometry
All Packages Class Hierarchy This Package Previous Next Index