public class FrameRectangle extends 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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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 measurementpublic 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()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.