|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsamples.preview_new_graphdraw.Coordinates
public class Coordinates
Stores coordinates (X,Y) for vertices being visualized.
Field Summary | |
---|---|
double |
x
x location |
double |
y
y location |
Constructor Summary | |
---|---|
Coordinates(Coordinates coordinates)
Initializes this coordinate to the value of the passed-in coordinate. |
|
Coordinates(double x,
double y)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
double |
getX()
|
double |
getY()
|
int |
hashCode()
|
void |
offset(double delta_x,
double delta_y)
Increases the x and y values of this scalar by (delta_x, delta_y). |
void |
scale(Dimension old,
Dimension newDim)
|
void |
setX(double d)
Sets the x value to be d; |
void |
setY(double d)
Sets the y value to be d; |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double x
public double y
Constructor Detail |
---|
public Coordinates(double x, double y)
public Coordinates(Coordinates coordinates)
coordinates
- Method Detail |
---|
public double getX()
public double getY()
public void setX(double d)
d
- public void setY(double d)
d
- public void offset(double delta_x, double delta_y)
delta_x
- delta_y
- public void scale(Dimension old, Dimension newDim)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |