org.jfree.layouting.util.geom
Class StrictPoint
java.lang.Objectorg.jfree.layouting.util.geom.StrictPoint
- Cloneable, Serializable
public class StrictPoint
extends java.lang.Object
implements Serializable, Cloneable
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.
StrictPoint()- DefaultConstructor.
|
StrictPoint(long x, long y)- Creates a StrictBounds object with the given coordinates, width
and height.
|
Object | clone()- Returns a copy of this Point object.
|
boolean | equals(Object o)- Checks, whether the given object is a StrictPoint instance sharing the same
coordinates as this point.
|
StrictPoint | getLockedInstance()- Returns a copy of this bounds object which cannot be modified anymore.
|
StrictPoint | getUnlockedInstance()- Returns a copy of this bounds object which can be modified later.
|
long | getX()- Returns the X coordinate of this
StrictPoint in micro points.
|
long | getY()- Returns the Y coordinate of this
StrictPoint in micro points.
|
int | hashCode()- Computes the hashcode for this point.
|
boolean | isLocked()- Checks, whether this point object is locked.
|
void | setLocation(long x, long y)- Sets the location of this
StrictPoint to the specified coordinates.
|
String | toString()- Returns a string representation of these bounds.
|
StrictPoint
public StrictPoint()
DefaultConstructor.
StrictPoint
public StrictPoint(long x,
long y) Creates a StrictBounds object with the given coordinates, width
and height.
x - the x-coordinatey - the y-coordinate
clone
public Object clone()
Returns a copy of this Point object. This method will never throw a
'CloneNotSupportedException'.
equals
public boolean equals(Object o)
Checks, whether the given object is a StrictPoint instance sharing the same
coordinates as this point.
- true, if the other object is equal to this object, false otherwise.
getLockedInstance
public StrictPoint getLockedInstance()
Returns a copy of this bounds object which cannot be modified anymore.
getUnlockedInstance
public StrictPoint getUnlockedInstance()
Returns a copy of this bounds object which can be modified later.
getX
public long getX()
Returns the X coordinate of this StrictPoint in micro points.
- the X coordinate of this
StrictPoint.
getY
public long getY()
Returns the Y coordinate of this StrictPoint in micro points.
- the Y coordinate of this
StrictPoint.
hashCode
public int hashCode()
Computes the hashcode for this point.
isLocked
public boolean isLocked()
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) Sets the location of this StrictPoint to the specified coordinates.
x - the coordinates of this StrictPointy - the coordinates of this StrictPoint
toString
public String toString()
Returns a string representation of these bounds.
- the string representing this object.