|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webmngr.web.MapPoint
This class is used to manipulate points on the map with float coordinates
Field Summary | |
float |
x
|
float |
y
|
Constructor Summary | |
MapPoint()
Default Constructor |
|
MapPoint(float x,
float y)
Constructor |
|
MapPoint(MapPoint mp)
Constructor |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares an object with this MapPoint |
MapPoint |
getLocation()
Returns this MapPoint location |
float |
getX()
Gets the X coordinate of this MapPoint |
float |
getY()
Gets the Y coordinate of this MapPoint |
static java.awt.Point |
pixelValue(MapPoint percent,
java.awt.Dimension base)
Returns a Pixel Value of percentual position, based on a base dimension |
void |
setX(float x)
Sets the X coordinate of this MapPoint |
void |
setY(float y)
Sets the Y coordinate of this MapPoint |
java.lang.String |
toString()
Returns a string representing this MapPoint |
static MapPoint |
valueOf(java.awt.Point p,
java.awt.Dimension d)
Returns the MapPoint value of a Point p with dimension d |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public float x
public float y
Constructor Detail |
public MapPoint()
public MapPoint(MapPoint mp)
mp
- a MapPoint whose x and y coordinates
will be used to initialize this mapPoint coordinatespublic MapPoint(float x, float y)
x
- the x coordinatey
- the y coordinateMethod Detail |
public float getX()
public float getY()
public MapPoint getLocation()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to be comparedpublic java.lang.String toString()
toString
in class java.lang.Object
public static MapPoint valueOf(java.awt.Point p, java.awt.Dimension d)
public static java.awt.Point pixelValue(MapPoint percent, java.awt.Dimension base)
percent
- percentual positionbase
- Pixel based dimensionpublic void setX(float x)
the
- x coordinate valuepublic void setY(float y)
the
- y coordinate value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |