Package com.storedobject.svg
Class Rectangle
- All Implemented Interfaces:
At<Rectangle>,Serializable
Represents an SVG rectangle.
- Author:
- Syam
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.svg.AbstractRectangle
attributes, getHeight, getWidth, getX, getY, height, width, x, yMethods inherited from class com.storedobject.svg.Node
compute, copy, createDocument, equals, escapeXml, extraContent, flipHorizontally, flipHorizontallyAroundOrigin, flipVertically, flipVerticallyAroundOrigin, getCoordinates, getId, getMargin, getSvg, hashCode, id, ID, IDValue, innerContent, moveTo, moveTo, rotate, rotateAround, rotateAround, rotateAroundCenter, scale, scale, scaleHeightTo, scaleTo, scaleWidthTo, toString, toString, transform, translate, translate
-
Constructor Details
-
Rectangle
Constructor.- Parameters:
p- Top-left point.w- Width.h- Height.
-
Rectangle
public Rectangle(double x, double y, double w, double h) Constructor.- Parameters:
x- Top-left X coordinate.y- Top-left Y coordinate.w- Width.h- Height.
-
Rectangle
public Rectangle(double w, double h) Constructor.- Parameters:
w- Width.h- Height.
-
Rectangle
-
Rectangle
public Rectangle()Constructor.
-
-
Method Details
-
of
-
of
Create a rectangle.- Parameters:
x- Top-left X coordinate.y- Top-left Y coordinate.w- Width.h- Height.- Returns:
- Rectangle.
-
of
Create a rectangle at (0, 0).- Parameters:
w- Width.h- Height.- Returns:
- Rectangle.
-