org.jfree.layouting.util.geom
Class StrictDimension
java.lang.Object
org.jfree.layouting.util.geom.StrictDimension
- Cloneable, Serializable
public class StrictDimension
extends java.lang.Object
implements Serializable, Cloneable
A dimension object that uses micro-points as units of measurement.
Object | clone() - Creates a copy of this object.
|
boolean | equals(Object o) - Checks, whether the given object is a StrictDimension instance convering the
same area as this dimension.
|
long | getHeight() - Returns the height of this dimension object.
|
StrictDimension | getLockedInstance() - Returns a copy of this dimension which cannot be modified anymore.
|
StrictDimension | getUnlockedInstance() - Returns a copy of this dimension which can be modified later.
|
long | getWidth() - Returns the width of this dimension object.
|
int | hashCode() - Computes the hashcode for this dimension.
|
boolean | isLocked() - Checks, whether this instance is locked.
|
void | setHeight(long height) - Updates the height of this dimension object.
|
void | setSize(long width, long height) - Sets the size of this
Dimension object to the specified width and
height.
|
void | setSize(StrictDimension size)
|
void | setWidth(long width) - Updates the width of this dimension object.
|
String | toString() - Returns a String representation of this dimension object.
|
StrictDimension
public StrictDimension()
Default-Constructor.
StrictDimension
public StrictDimension(long width,
long height)
Creates a new dimension object with the given width and height.
The object is not locked.
width
- the width.height
- the height.
clone
public Object clone()
Creates a copy of this object. This method is guaranteed to never throw
a CloneNotSupportedException.
equals
public boolean equals(Object o)
Checks, whether the given object is a StrictDimension instance convering the
same area as this dimension.
- true, if the other object is equal to this object, false otherwise.
getHeight
public long getHeight()
Returns the height of this dimension object.
getLockedInstance
public StrictDimension getLockedInstance()
Returns a copy of this dimension which cannot be modified anymore.
getUnlockedInstance
public StrictDimension getUnlockedInstance()
Returns a copy of this dimension which can be modified later.
getWidth
public long getWidth()
Returns the width of this dimension object.
hashCode
public int hashCode()
Computes the hashcode for this dimension.
isLocked
public boolean isLocked()
Checks, whether this instance is locked.
- true, if the dimension object is locked, false otherwise.
setHeight
public void setHeight(long height)
Updates the height of this dimension object.
height
- the new height, given in micro-points.
setSize
public void setSize(long width,
long height)
Sets the size of this Dimension
object to the specified width and
height.
width
- the new width for the Dimension
objectheight
- the new height for the Dimension
object
setWidth
public void setWidth(long width)
Updates the width of this dimension object.
width
- the new width, given in micro-points.
toString
public String toString()
Returns a String representation of this dimension object.
- a string describing the object.