Package overit.geocall.ecs
Class Svg
java.lang.Object
org.apache.ecs.GenericElement
org.apache.ecs.ElementAttributes
org.apache.ecs.ConcreteElement
org.apache.ecs.MultiPartElement
overit.geocall.ecs.Svg
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ecs.Attributes,org.apache.ecs.Element,org.apache.ecs.ElementRegistry,org.apache.ecs.Printable
public class Svg
extends org.apache.ecs.MultiPartElement
implements org.apache.ecs.Printable
This class manages the attributes of an svg
- See Also:
-
Field Summary
Fields inherited from class org.apache.ecs.GenericElement
tabLevelFields inherited from interface org.apache.ecs.Attributes
NO_ATTRIBUTE_VALUEFields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddElement(String element) Add an element to the SvgaddElement(String hashcode, String element) Adds an element to the SvgaddElement(org.apache.ecs.Element element) Add an element to the SvgsetHeight(int h) Sets the heightSets the attribute preserveAsoectRatiosetViewbox(String viewbox) Sets the viewboxsetWidth(int w) Sets the widthMethods inherited from class org.apache.ecs.ConcreteElement
addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, addElementToRegistry, clone, elements, getElement, isEmpty, output, output, output, output, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistryMethods inherited from class org.apache.ecs.ElementAttributes
addAttribute, addAttribute, addAttribute, addAttribute, attributes, createStartTag, getAttribute, getAttributeEqualitySign, getAttributeFilter, getAttributeFilterState, getAttributeQuote, getAttributeQuoteChar, hasAttribute, removeAttribute, setAttributeEqualitySign, setAttributeFilter, setAttributeFilterState, setAttributeQuote, setAttributeQuoteChar, setClass, setDir, setID, setLang, setStyle, setTitleMethods inherited from class org.apache.ecs.GenericElement
alterCase, createEndTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementHashEntry, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilter, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, putTabs, putTabs, removeBeginEndModifier, removeBeginStartModifier, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginModifier, setBeginModifier, setBeginStartModifier, setCase, setCodeSet, setElementType, setEndEndModifier, setEndModifier, setEndModifier, setEndStartModifier, setEndTagChar, setFilter, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
-
Constructor Details
-
Svg
public Svg()Empty constructor -
Svg
Creates a new instance of Svg- Parameters:
viewbox- The viewbox to set
-
Svg
public Svg(org.apache.ecs.Element element) Creates a new instance of Svg- Parameters:
element- The element to add
-
Svg
Creates a new instance of Svg- Parameters:
element- The element to addviewbox- The viewbox to set
-
-
Method Details
-
setViewbox
Sets the viewbox- Parameters:
viewbox- The viewbox to set- Returns:
- The Svg
-
setPreserveAspectRatio
Sets the attribute preserveAsoectRatio- Parameters:
par- The attribute to set as preserveAsoectRatio- Returns:
- The Svg
-
setWidth
Sets the width- Parameters:
w- The width to set- Returns:
- The Svg
-
setHeight
Sets the height- Parameters:
h- The height to set- Returns:
- The Svg
-
addElement
Adds an element to the Svg- Parameters:
hashcode- The string containing the hashcodeelement- The string containing the element- Returns:
- The Svg
-
addElement
Add an element to the Svg- Parameters:
element- The element to add- Returns:
- The Svg
-
addElement
Add an element to the Svg- Parameters:
element- String containing the element to add- Returns:
- THe Svg
-