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

    tabLevel

    Fields inherited from interface org.apache.ecs.Attributes

    NO_ATTRIBUTE_VALUE

    Fields inherited from interface org.apache.ecs.Element

    CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Svg()
    Empty constructor
    Svg(String viewbox)
    Creates a new instance of Svg
    Svg(org.apache.ecs.Element element)
    Creates a new instance of Svg
    Svg(org.apache.ecs.Element element, String viewbox)
    Creates a new instance of Svg
  • Method Summary

    Modifier and Type
    Method
    Description
    addElement(String element)
    Add an element to the Svg
    addElement(String hashcode, String element)
    Adds an element to the Svg
    addElement(org.apache.ecs.Element element)
    Add an element to the Svg
    setHeight(int h)
    Sets the height
    Sets the attribute preserveAsoectRatio
    setViewbox(String viewbox)
    Sets the viewbox
    setWidth(int w)
    Sets the width

    Methods 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, removeElementFromRegistry

    Methods 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, setTitle

    Methods 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Svg

      public Svg()
      Empty constructor
    • Svg

      public Svg(String viewbox)
      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

      public Svg(org.apache.ecs.Element element, String viewbox)
      Creates a new instance of Svg
      Parameters:
      element - The element to add
      viewbox - The viewbox to set
  • Method Details

    • setViewbox

      public Svg setViewbox(String viewbox)
      Sets the viewbox
      Parameters:
      viewbox - The viewbox to set
      Returns:
      The Svg
    • setPreserveAspectRatio

      public Svg setPreserveAspectRatio(String par)
      Sets the attribute preserveAsoectRatio
      Parameters:
      par - The attribute to set as preserveAsoectRatio
      Returns:
      The Svg
    • setWidth

      public Svg setWidth(int w)
      Sets the width
      Parameters:
      w - The width to set
      Returns:
      The Svg
    • setHeight

      public Svg setHeight(int h)
      Sets the height
      Parameters:
      h - The height to set
      Returns:
      The Svg
    • addElement

      public Svg addElement(String hashcode, String element)
      Adds an element to the Svg
      Parameters:
      hashcode - The string containing the hashcode
      element - The string containing the element
      Returns:
      The Svg
    • addElement

      public Svg addElement(org.apache.ecs.Element element)
      Add an element to the Svg
      Parameters:
      element - The element to add
      Returns:
      The Svg
    • addElement

      public Svg addElement(String element)
      Add an element to the Svg
      Parameters:
      element - String containing the element to add
      Returns:
      THe Svg