|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.layouting.util.geom.StrictDimension
public class StrictDimension
A dimension object that uses micro-points as units of measurement.
| Constructor Summary | |
|---|---|
StrictDimension()
Default-Constructor. |
|
StrictDimension(long width,
long height)
Creates a new dimension object with the given width and height. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of this object. |
boolean |
equals(java.lang.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. |
java.lang.String |
toString()
Returns a String representation of this dimension object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StrictDimension()
public StrictDimension(long width,
long height)
width - the width.height - the height.| Method Detail |
|---|
public boolean isLocked()
public StrictDimension getLockedInstance()
public StrictDimension getUnlockedInstance()
public void setSize(long width,
long height)
Dimension object to the specified width and
height.
width - the new width for the Dimension objectheight - the new height for the Dimension object
java.lang.IllegalStateException - if the dimension object is lockedpublic long getHeight()
public void setHeight(long height)
height - the new height, given in micro-points.public long getWidth()
public void setWidth(long width)
width - the new width, given in micro-points.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other object.
public int hashCode()
hashCode in class java.lang.Objectpublic void setSize(StrictDimension size)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||