Constructor and Description |
---|
Dimension(double width,
double height,
IlvUnit unit)
Creates a dimension in the specified
unit of measurement.
|
Dimension(IlvUnit unit)
Creates a dimension of (0,0) in the specified
unit of measurement.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the object.
|
double |
getHeight()
Returns the height of this dimension.
|
double |
getHeightAs(IlvUnit unit)
Returns the height of this dimension in the specified unit.
|
IlvUnit |
getUnit()
Returns the unit of measurement of this object.
|
double |
getWidth()
Returns the width of this dimension.
|
double |
getWidthAs(IlvUnit unit)
Returns the width of this dimension in the specified unit.
|
void |
setSize(double width,
double height)
Changes the size of this dimension.
|
public Dimension(IlvUnit unit)
public Dimension(double width, double height, IlvUnit unit)
public IlvUnit getUnit()
public double getWidth()
public double getHeight()
public void setSize(double width, double height)
public double getWidthAs(IlvUnit unit)
public double getHeightAs(IlvUnit unit)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.