Interface Rect
- All Superinterfaces:
Serializable,Shape
- All Known Implementing Classes:
RectImpl
Interface for the rect xml type.
Interface for the rect xml type.
As obvious, this interface describes a rectangle, usually
of an CometGroup, element or placeholder.
Implemented in RectImpl
and referred in several Java / xml types.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the height (vertical dimension) of this rect.Gets the transform of the rectangledoublegetWidth()Gets the width (horizontal dimension) of this rect.doublegetX()Gets the X origin (leftmost corner) of this rect.doublegetY()Gets the Y origin (topmost corner) of this rect.voidsetHeight(double height) Sets the height (vertical dimension) of this rect.voidsetTransform(String transform) Sets the transform of the rectanglevoidsetWidth(double width) Sets the width (horizontal dimension) of this rect.voidsetX(double x) Sets the X origin (leftmost corner) of this rect.voidsetY(double y) Sets the Y origin (topmost corner) of this rect.Methods inherited from interface com.priint.pubserver.metadata.base.Shape
getFill, getOpacity, getStroke, getStrokeWidth, setFill, setOpacity, setStroke, setStrokeWidth
-
Method Details
-
getX
double getX()Gets the X origin (leftmost corner) of this rect.
Gets the X origin (leftmost corner) of this rect.
- Returns:
- the X origin of this rect
-
setX
void setX(double x) Sets the X origin (leftmost corner) of this rect.
Sets the X origin (leftmost corner) of this rect.
- Parameters:
x- the X origin of this rect
-
getY
double getY()Gets the Y origin (topmost corner) of this rect.
Gets the Y origin (topmost corner) of this rect.
- Returns:
- the Y origin (topmost corner) of this rect
-
setY
void setY(double y) Sets the Y origin (topmost corner) of this rect.
Sets the Y origin (topmost corner) of this rect.
- Parameters:
y- the Y origin (topmost corner) of this rect.
-
getWidth
double getWidth()Gets the width (horizontal dimension) of this rect.
Gets the width (horizontal dimension) of this rect.
- Returns:
- the width of this rect
-
setWidth
void setWidth(double width) Sets the width (horizontal dimension) of this rect.
Sets the width (horizontal dimension) of this rect.
- Parameters:
width- the width of this rect
-
getHeight
double getHeight()Gets the height (vertical dimension) of this rect.
Gets the height (vertical dimension) of this rect.
- Returns:
- the height of this rect
-
setHeight
void setHeight(double height) Sets the height (vertical dimension) of this rect.
Sets the height (vertical dimension) of this rect.
- Parameters:
height- the height of this rect
-
setTransform
Sets the transform of the rectangle
- Parameters:
transform- of the rectangle
-
getTransform
String getTransform()Gets the transform of the rectangle
- Returns:
- the transform
-