|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.webgui.service.impl.utility.model.Point
public class Point
A simple 2-dimensional integer point, used for storing positions of any relevant graph component.
| Constructor Summary | |
|---|---|
Point()
Simple constructor, initializing both dimensions with zero. |
|
Point(float x,
float y)
A constructor that rounds float values to the internal integer representation. |
|
Point(int x,
int y)
A constructor that takes integer values for the coordinates. |
|
| Method Summary | |
|---|---|
int |
getX()
|
int |
getY()
|
void |
setValue(float x,
float y)
Rounds two float values and stores the rounded integer values as new coordinates. |
void |
setValue(int x,
int y)
Stores two integer values as new coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Point()
public Point(float x,
float y)
x - the unrounded x-coordinatey - the unrounded y-coordinate
public Point(int x,
int y)
x - the x-coordinatey - the y-coordinate| Method Detail |
|---|
public int getX()
Pointpublic int getY()
Point
public void setValue(float x,
float y)
x - the unrounded x-coordinatey - the unrounded y-coordinate
public void setValue(int x,
int y)
x - the x-coordinatey - the y-coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||