Package com.storedobject.svg
Class Text
java.lang.Object
com.storedobject.svg.Svg
com.storedobject.svg.Element
com.storedobject.svg.Text
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.svg.Svg
Svg.Anchor, Svg.Margin, Svg.Mover, Svg.Scale, Svg.ScaleTo -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(double x, double y) Set the position.Set the position.voidbuild()Build the SVG.getAt()Get the position.getText()Get the text.static TextCreate a text.Create a text.static TextCreate a text.voidSet the position.voidSet the text.voidsetX(double x) Set the X coordinate.voidsetY(double y) Set the Y coordinate.Set the text.x(double x) Set the X coordinate.y(double y) Set the Y coordinate.Methods inherited from class com.storedobject.svg.Element
addStyle, isBuilt, removeStyle, stylesMethods inherited from class com.storedobject.svg.Svg
add, add, add, escapeXml, flipHorizontally, flipVertically, getFilledSvg, getHeight, getScaledSvg, getSvg, getWidth, getX, getY, margin, margin, scale, scale, scaleTo, scaleToHeight, scaleToWidth, toString
-
Constructor Details
-
Text
-
Text
Constructor.- Parameters:
x- X coordinate.y- Y coordinate.text- Text.
-
Text
-
Text
public Text()Constructor. -
Text
-
Text
public Text(double x, double y) Constructor.- Parameters:
x- X coordinate.y- Y coordinate.
-
-
Method Details
-
getAt
-
setAt
-
at
Set the position.- Parameters:
x- X coordinate.y- Y coordinate.- Returns:
- Self.
-
setX
public void setX(double x) Set the X coordinate.- Parameters:
x- X coordinate.
-
setY
public void setY(double y) Set the Y coordinate.- Parameters:
y- Y coordinate.
-
setText
-
getText
-
of
-
of
-
of
-
x
-
y
-
text
-
at
-
build
-