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