|
||||||||||
| 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.Double
att.grappa.GrappaPoint
public class GrappaPoint
This class extends java.awt.geom.Point2D.Double and provides built-in string-to-Point2D and Point2D-to-string conversions suitable for Grappa.
| 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.Double |
|---|
x, y |
| Constructor Summary | |
|---|---|
GrappaPoint()
Constructs and initializes a GrappaPoint with
coordinates (0, 0). |
|
GrappaPoint(double x,
double y)
Constructs and initializes a GrappaPoint with the
specified coordinates. |
|
GrappaPoint(java.lang.String coordString)
Constructs and initializes a GrappaPoint with the
coordinates derived from the specified String representation. |
|
| Method Summary | |
|---|---|
java.lang.String |
toAttributeString()
Provides a string representation of this object consistent with Grappa attributes. |
java.lang.String |
toFormattedString(java.lang.String format)
Provides a formatted string representation of this object. |
java.lang.String |
toString()
Provides a generic string representation of this object. |
| Methods inherited from class java.awt.geom.Point2D.Double |
|---|
getX, getY, 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 GrappaPoint()
GrappaPoint with
coordinates (0, 0).
public GrappaPoint(double x,
double y)
GrappaPoint with the
specified coordinates.
x, y - the coordinates to which to set the newly
constructed GrappaPointpublic GrappaPoint(java.lang.String coordString)
GrappaPoint with the
coordinates derived from the specified String representation.
The String format should be: "x-coord,y-coord"
coordString - String representing the coordinates to which to
set the newly constructed GrappaPoint| Method Detail |
|---|
public java.lang.String toAttributeString()
public java.lang.String toFormattedString(java.lang.String format)
format - the format used to build the string (%p is the base directive for a GrappaPoint).
public java.lang.String toString()
toString in class java.awt.geom.Point2D.Double
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||