Constructor and Description |
---|
Rectangle(double x,
double y,
double w,
double h,
IlvUnit unit)
Creates a rectangle with its unit of measurement.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the object.
|
double |
getHeight()
Returns the height of this rectangle.
|
double |
getHeightAs(IlvUnit unit)
Returns the height of this rectangle in the
specified unit of measurement.
|
IlvUnit |
getUnit()
Returns the unit of measurement of this object.
|
double |
getWidth()
Returns the width of this rectangle.
|
double |
getWidthAs(IlvUnit unit)
Returns the width of this rectangle in the
specified unit of measurement.
|
double |
getX()
Returns the x coordinate.
|
double |
getXAs(IlvUnit unit)
Returns the x coordinate of this rectangle in the
specified unit of measurement.
|
double |
getY()
Returns the y coordinate.
|
double |
getYAs(IlvUnit unit)
Returns the y coordinate of this rectangle in the
specified unit of measurement.
|
void |
setSize(double width,
double height)
Changes the size of this rectangle.
|
void |
setX(double x)
Changes the x coordinate.
|
void |
setY(double y)
Changes the y coordinate.
|
String |
toString()
Returns a string representation of this object.
|
public Rectangle(double x, double y, double w, double h, IlvUnit unit)
public IlvUnit getUnit()
public double getX()
setX(double)
public void setX(double x)
setY(double)
public double getY()
setY(double)
public void setY(double y)
setY(double)
public double getWidth()
setSize(double, double)
public double getHeight()
setSize(double, double)
public void setSize(double width, double height)
public double getXAs(IlvUnit unit)
getX()
public double getYAs(IlvUnit unit)
getY()
public double getWidthAs(IlvUnit unit)
getWidth()
public double getHeightAs(IlvUnit unit)
getHeight()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.