| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | |
| private int | x
The location |
| private int | y
The location |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object to be compared is
an instance of Point and has
the same values; false otherwisean object to be compared with this point obj)Overrides java. Point2D is equal
to this point.
|
| public void | getLocation(WritablePoint
The destination Point, or null, to create a new Point dest)Implements org. |
| public int | |
| public int | |
| public int | Returns: a hash code for thisPointOverrides java. Point.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public String | Returns: a string representation of this pointOverrides java. |
| public void | |
| public void | |
| public void |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| x | back to summary |
|---|---|
| private int x The location | |
| y | back to summary |
|---|---|
| private int y The location | |
| Point | back to summary |
|---|---|
| public Point() Constructor for Point. | |
| Point | back to summary |
|---|---|
| public Point(int x, int y) Constructor for Point. | |
| Point | back to summary |
|---|---|
| public Point(ReadablePoint p) Constructor for Point. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines whether an instance of
| |
| getLocation | back to summary |
|---|---|
| public void getLocation(WritablePoint dest) Implements org. Doc from org. Copy this ReadablePoint into a destination Point
| |
| getX | back to summary |
|---|---|
| public int getX() Implements org.
| |
| getY | back to summary |
|---|---|
| public int getY() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this
| |
| setLocation | back to summary |
|---|---|
| public void setLocation(int x, int y) Implements org. | |
| setLocation | back to summary |
|---|---|
| public void setLocation(ReadablePoint p) Implements org. | |
| setX | back to summary |
|---|---|
| public void setX(int x) Implements org. | |
| setY | back to summary |
|---|---|
| public void setY(int y) Implements org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this point and its location
in the (x, y) coordinate space. This method is
intended to be used only for debugging purposes, and the content
and format of the returned string may vary between implementations.
The returned string may be empty but may not be
| |
| translate | back to summary |
|---|---|
| public void translate(int dx, int dy) Translate a point.
| |
| translate | back to summary |
|---|---|
| public void translate(ReadablePoint p) Translate a point.
| |
| untranslate | back to summary |
|---|---|
| public void untranslate(ReadablePoint p) Un-translate a point.
| |