cgl.narada.topology.viewer
Class Position

java.lang.Object
  extended by cgl.narada.topology.viewer.Position

public class Position
extends Object

This class is used to record the position, size and color of any node. The node can be cluster, super cluster, super super cluster etc.


Field Summary
static double INVALID_VALUE
           
 
Constructor Summary
Position()
          Contructor setting INVALI-VALUES
Position(double cenX, double cenY, double rad)
           
Position(double cenX, double cenY, double rad, Color col)
           
 
Method Summary
 double getCenterX()
           
 double getCenterY()
           
 Color getColor()
           
 double getRadius()
           
 void setCenterX(double cenX)
           
 void setCenterY(double cenY)
           
 void setColor(Color color)
           
 void setRadius(double rad)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_VALUE

public static double INVALID_VALUE
Constructor Detail

Position

public Position()
Contructor setting INVALI-VALUES


Position

public Position(double cenX,
                double cenY,
                double rad)

Position

public Position(double cenX,
                double cenY,
                double rad,
                Color col)
Method Detail

setCenterX

public void setCenterX(double cenX)

setCenterY

public void setCenterY(double cenY)

setRadius

public void setRadius(double rad)

setColor

public void setColor(Color color)

getCenterX

public double getCenterX()

getCenterY

public double getCenterY()

getRadius

public double getRadius()

getColor

public Color getColor()


For comments and suggestions please send e-mail to The NaradaBrokering Project