Package com.storedobject.svg
Class Element
java.lang.Object
com.storedobject.svg.Svg
com.storedobject.svg.Element
-
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
FieldsModifier and TypeFieldDescriptionprotected booleanFlag to indicate if the element is built.Styles for this element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a style to this element.final booleanisBuilt()Check if the chart is built.voidremoveStyle(String name) Remove a style from this element.protected StringGenerate the style string for the given tag.Methods inherited from class com.storedobject.svg.Svg
add, add, add, build, escapeXml, flipHorizontally, flipVertically, getFilledSvg, getHeight, getScaledSvg, getSvg, getWidth, getX, getY, margin, margin, scale, scale, scaleTo, scaleToHeight, scaleToWidth, toString
-
Field Details
-
styles
-
built
protected boolean builtFlag to indicate if the element is built.
-
-
Constructor Details
-
Element
public Element()Constructs a new instance of the Element class. This serves as the base constructor for all SVG elements, initializing the object without setting specific styles or properties.
-
-
Method Details
-
isBuilt
-
addStyle
-
removeStyle
Remove a style from this element.- Parameters:
name- Name of the style to remove.
-
styles
-