| java.lang.Object org.jfree.report.util.geom.StrictPoint
StrictPoint | public class StrictPoint implements Serializable,Cloneable(Code) | | A StrictPoint class represents a coordinate in the report layout. It
is similiar to the
java.awt.geom.Point2D class, but uses
micro-points instead of doubles.
author: Thomas Morgner |
Constructor Summary | |
public | StrictPoint() DefaultConstructor. | public | StrictPoint(long x, long y) Creates a StrictBounds object with the given coordinates, width
and height. |
Method Summary | |
public Object | clone() Returns a copy of this Point object. | public boolean | equals(Object o) Checks, whether the given object is a StrictPoint instance sharing the same
coordinates as this point.
Parameters: o - the other object. | public StrictPoint | getLockedInstance() Returns a copy of this bounds object which cannot be modified anymore. | public StrictPoint | getUnlockedInstance() Returns a copy of this bounds object which can be modified later. | public long | getX() Returns the X coordinate of this StrictPoint in micro points. | public long | getY() Returns the Y coordinate of this StrictPoint in micro points. | public int | hashCode() Computes the hashcode for this point. | public boolean | isLocked() Checks, whether this point object is locked. | public void | setLocation(long x, long y) Sets the location of this StrictPoint to the specified coordinates. | public String | toString() Returns a string representation of these bounds. |
StrictPoint | public StrictPoint()(Code) | | DefaultConstructor.
|
StrictPoint | public StrictPoint(long x, long y)(Code) | | Creates a StrictBounds object with the given coordinates, width
and height.
Parameters: x - the x-coordinate Parameters: y - the y-coordinate |
clone | public Object clone()(Code) | | Returns a copy of this Point object. This method will never throw a
'CloneNotSupportedException'.
the cloned instance. |
equals | public boolean equals(Object o)(Code) | | Checks, whether the given object is a StrictPoint instance sharing the same
coordinates as this point.
Parameters: o - the other object. true, if the other object is equal to this object, false otherwise. |
getLockedInstance | public StrictPoint getLockedInstance()(Code) | | Returns a copy of this bounds object which cannot be modified anymore.
a locked copy. |
getUnlockedInstance | public StrictPoint getUnlockedInstance()(Code) | | Returns a copy of this bounds object which can be modified later.
an unlocked copy. |
getX | public long getX()(Code) | | Returns the X coordinate of this StrictPoint in micro points.
the X coordinate of this StrictPoint . |
getY | public long getY()(Code) | | Returns the Y coordinate of this StrictPoint in micro points.
the Y coordinate of this StrictPoint . |
hashCode | public int hashCode()(Code) | | Computes the hashcode for this point.
the computed hashcode. |
isLocked | public boolean isLocked()(Code) | | Checks, whether this point object is locked.
true, if the point is locked and therefore immutable, false otherwise. |
setLocation | public void setLocation(long x, long y)(Code) | | Sets the location of this StrictPoint to the specified coordinates.
Parameters: x - the coordinates of this StrictPoint Parameters: y - the coordinates of this StrictPoint |
toString | public String toString()(Code) | | Returns a string representation of these bounds.
the string representing this object. |
|
|