|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Float
ilog.views.IlvPoint
public class IlvPoint
The IlvPoint class defines a point specified in float
precision representing a location
in (x, y) coordinate space.
This class is a serializable subclass of the Java Point2D.Float
class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.geom.Point2D.Float |
|---|
x, y |
| Constructor Summary | |
|---|---|
IlvPoint()
Creates a new IlvPoint with coordinates (0, 0). |
|
IlvPoint(float x,
float y)
Creates a new IlvPoint with the specified
coordinates. |
|
IlvPoint(IlvPoint p)
Creates a new IlvPoint by copying the specified point. |
|
| Method Summary | |
|---|---|
void |
floor()
Modifies the point so that the coordinates becomes mathematical integers. |
void |
move(float x,
float y)
Changes the point location. |
java.lang.String |
toString()
Returns a String that represents the value
of this IlvPoint. |
void |
translate(float dx,
float dy)
Translates the point. |
int |
xFloor()
Returns the x coordinate of the point as a mathematical integer. |
int |
yFloor()
Returns the y coordinate of the point as a mathematical integer. |
| Methods inherited from class java.awt.geom.Point2D.Float |
|---|
getX, getY, setLocation, setLocation |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvPoint()
IlvPoint with coordinates (0, 0).
public IlvPoint(float x,
float y)
IlvPoint with the specified
coordinates.
x - the x coordinate.y - the y coordinate.public IlvPoint(IlvPoint p)
IlvPoint by copying the specified point.
p - The point to copy.| Method Detail |
|---|
public final void translate(float dx,
float dy)
public final void move(float x,
float y)
public final void floor()
xFloor(),
yFloor(),
IlvTransformer.applyFloor(ilog.views.IlvPoint)public final int xFloor()
floor(),
yFloor(),
IlvTransformer.applyFloor(ilog.views.IlvPoint)public final int yFloor()
floor(),
xFloor(),
IlvTransformer.applyFloor(ilog.views.IlvPoint)public java.lang.String toString()
String that represents the value
of this IlvPoint.
toString in class java.awt.geom.Point2D.FloatIlvPoint.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||