Package com.storedobject.svg
Class Square
- All Implemented Interfaces:
At<Square>,Serializable
Represents an SVG square.
- 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
-
Square
-
Square
public Square(double x, double y, double size) Constructor.- Parameters:
x- Top-left X coordinate.y- Top-left Y coordinate.size- Size.
-
Square
public Square(double size) Constructor.- Parameters:
size- Size.
-
Square
public Square()Constructor. -
Square
-
-
Method Details
-
getSize
public double getSize()Get the size.- Returns:
- Size.
-
of
-
of
Create a square.- Parameters:
x- Top-left X coordinate.y- Top-left Y coordinate.size- Size.- Returns:
- Square.
-
of
Create a square at (0, 0).- Parameters:
size- Size.- Returns:
- Square.
-
size
-