|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.cpl.graphic.IlpPoint
public class IlpPoint
This class implements a point that can be used as a position in the network component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
Point2D.Double, Point2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.geom.Point2D.Float |
|---|
x, y |
| Constructor Summary | |
|---|---|
IlpPoint()
Creates a new point located at (0,0). |
|
IlpPoint(float x,
float y)
Creates a new point at the specified location. |
|
IlpPoint(IlvPoint p)
Creates a new point by copying an existing point. |
|
IlpPoint(String s)
Creates a new point by parsing a string. |
|
| Method Summary | |
|---|---|
Object |
clone()
Copies the point. |
boolean |
equals(Object other)
Tests for equality. |
static Object |
valueOf(String s)
Creates a new point by parsing a string. |
| Methods inherited from class ilog.views.IlvPoint |
|---|
floor, move, toString, translate, xFloor, yFloor |
| Methods inherited from class java.awt.geom.Point2D.Float |
|---|
getX, getY, setLocation, setLocation |
| Methods inherited from class java.awt.geom.Point2D |
|---|
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpPoint()
public IlpPoint(float x,
float y)
x - The x coordinate.y - The y coordinate.public IlpPoint(IlvPoint p)
public IlpPoint(String s)
throws IllegalArgumentException
Point is created from String formed as x,y
for instance 120,50.
Throws an exception if the string cannot be parsed as a point.
s - The String containing the point.
IllegalArgumentException - if the string does not
contain a point that can be parsed.| Method Detail |
|---|
public static Object valueOf(String s)
throws IllegalArgumentException
s - The String containing the point.
IllegalArgumentException - if the string does not
contain a point that can be parsed.public Object clone()
clone in class Point2Dpublic boolean equals(Object other)
equals in class Point2D
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||