|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.simple.draw.FrameRectangle
public class FrameRectangle
This class represents a rectangle used by a frame object.
A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-left point (x, y) in the coordinate space, its width, and its height.
Constructor Summary | |
---|---|
FrameRectangle(double x,
double y,
double width,
double height,
StyleTypeDefinitions.SupportedLinearMeasure linearMeasure)
Create an instance of FrameRectangle with the top-left point (x, y), width, height and the measurement |
|
FrameRectangle(String xDesc,
String yDesc,
String widthDesc,
String heightDesc)
Create an instance of FrameRectangle with the descriptions of top-left point (x, y), width and height. |
Method Summary | |
---|---|
double |
getHeight()
|
String |
getHeigthDesc()
Return the height with measurement |
StyleTypeDefinitions.SupportedLinearMeasure |
getLinearMeasure()
|
double |
getWidth()
|
String |
getWidthDesc()
Return the width with measurement |
double |
getX()
|
String |
getXDesc()
Return the x-axis coordinate with measurement |
double |
getY()
|
String |
getYDesc()
Return the y-axis coordinate with measurement |
void |
setHeight(double height)
|
void |
setLinearMeasure(StyleTypeDefinitions.SupportedLinearMeasure newLinearMeasure)
|
void |
setWidth(double width)
|
void |
setX(double x)
|
void |
setY(double y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrameRectangle(double x, double y, double width, double height, StyleTypeDefinitions.SupportedLinearMeasure linearMeasure)
x
- - the x-axis coordinatey
- - the y-axis coordinatewidth
- - the widthheight
- - the heightlinearMeasure
- - the measurementpublic FrameRectangle(String xDesc, String yDesc, String widthDesc, String heightDesc)
xDesc
- - the x-axis coordinate with measurementyDesc
- - the y-axis coordinate with measurementwidthDesc
- - the width with measurementheightDesc
- - the height with measurementMethod Detail |
---|
public double getX()
public void setX(double x)
x
- - the x-axis coordinate to setpublic double getY()
public void setY(double y)
y
- - the y-axis coordinate to setpublic double getWidth()
public void setWidth(double width)
width
- - the width to setpublic double getHeight()
public void setHeight(double height)
height
- - the height to setpublic StyleTypeDefinitions.SupportedLinearMeasure getLinearMeasure()
public void setLinearMeasure(StyleTypeDefinitions.SupportedLinearMeasure newLinearMeasure)
newLinearMeasure
- the line measurement to setpublic String getXDesc()
public String getYDesc()
public String getWidthDesc()
public String getHeigthDesc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |