|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCUnit.Dimension
Dimension is similar in concept to java.awt.Dimension, but the values are stored as double-precision numbers and the units of measurement are recorded as well.
Field Summary | |
double |
height
The magnitude of the height being represented. |
com.klg.jclass.page.JCUnit |
units
JCUnit object representing the units of linear measurement. |
double |
width
The magnitude of the width being represented. |
Constructor Summary | |
JCUnit.Dimension()
Creates zero dimensions based on the current units. |
|
JCUnit.Dimension(double width,
double height)
Creates width and height dimensions measured in the current units. |
|
JCUnit.Dimension(com.klg.jclass.page.JCUnit units)
Creates zero dimensions based on the given units. |
|
JCUnit.Dimension(com.klg.jclass.page.JCUnit units,
double width,
double height)
Creates width and height dimensions measured in the given units. |
Method Summary | |
void |
assign(JCUnit.Dimension newValue)
Sets this dimension equal to the given one. |
Object |
clone()
Creates a clone of this Dimension. |
boolean |
equals(Object obj)
Compares an Object to this Dimension. |
JCUnit.Measure |
getHeight()
Returns the height of the dimension as a measure. |
JCUnit.Measure |
getWidth()
Returns the width of the dimension as a measure. |
int |
hashCode()
Creates a hash that generates the same value depending on the property values. |
double |
heightInt()
Gets the height defined by the object in internal units. |
void |
setHeight(JCUnit.Measure newHeight)
Sets the height of the dimension from a measure. |
void |
setWidth(JCUnit.Measure newWidth)
Sets the width of the dimension from a measure. |
String |
toString()
Returns the dimension values and units as a String. |
double |
widthInt()
Gets the width defined by the object in internal units. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public com.klg.jclass.page.JCUnit units
JCUnit
object representing the units of linear measurement.
public double width
public double height
Constructor Detail |
public JCUnit.Dimension()
public JCUnit.Dimension(com.klg.jclass.page.JCUnit units)
units
- the units to apply to the new dimensionspublic JCUnit.Dimension(double width, double height)
width
- the magnitude of the horizontal dimension in current unitsheight
- the magnitude of the vertical dimension in current unitspublic JCUnit.Dimension(com.klg.jclass.page.JCUnit units, double width, double height)
units
- the units to apply to the new dimensionswidth
- the magnitude of the horizontal dimension in unitsheight
- the magnitude of the vertical dimension in unitsMethod Detail |
public Object clone()
clone
in class Object
public JCUnit.Measure getWidth()
public void setWidth(JCUnit.Measure newWidth)
newWidth
- the measure giving the Dimension's new widthpublic double widthInt()
public JCUnit.Measure getHeight()
public void setHeight(JCUnit.Measure newHeight)
newHeight
- the measure giving the Dimension's new heightpublic double heightInt()
public void assign(JCUnit.Dimension newValue)
newValue
- the value to assign to this dimensionpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- an Object to compare for equality with this Dimension
true
if both objects are Dimensions and the two Dimensions
are identical (independent of units)public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |