cox.jmatt.java.MathTools.markup.svg
Class SymbolTag

java.lang.Object
  extended by cox.jmatt.java.MathTools.markup.Tag
      extended by cox.jmatt.java.MathTools.markup.svg.StyleTag
          extended by cox.jmatt.java.MathTools.markup.svg.DrawableContainerTag
              extended by cox.jmatt.java.MathTools.markup.svg.GroupTag
                  extended by cox.jmatt.java.MathTools.markup.svg.SymbolTag
Direct Known Subclasses:
SVGTag

public class SymbolTag
extends GroupTag

This class encapsulates the <symbol> tag.


Nested Class Summary
 
Nested classes/interfaces inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag
StyleTag.TagKeys
 
Field Summary
 
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag
myTagName
 
Constructor Summary
protected SymbolTag(StyleTag.TagKeys pKey)
          Constructor provided for subclasses.
 
Method Summary
static SymbolTag newInstance(java.lang.String pTagID)
          This is the only way to construct an instance of this class.
 void reset()
          Overridden to preserve the ID.
 void reset(java.lang.String newID)
          Call this method to clear data and re-set the ID in one fell swoop.
 void setID(java.lang.String pID)
          Overridden to ensure the ID set is valid.
 SymbolTag setPAR(java.lang.String par)
          Set aspect ratio preservation for this symbol.
 SymbolTag setViewBox(java.lang.String pVBox)
          Set the 'viewBox=' attribute.
 
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.GroupTag
configureTag, setDesc, setTitle
 
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.DrawableContainerTag
_addContent, _addCSS, _addDef, _content, _setContent, _setDesc, _setOBUS, _setPAR, _setTitle, _setViewBox, add, addRaw, drawCircle, drawEllipse, drawLine, drawPath, drawPoint, drawPolygon, drawPolyline, drawRectangle, drawRectangle, drawText
 
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag
_configureTag, _enableCopy, canHaveDefs, isInDefs, setDefaultPen, setDefaultStyle, setDefaultTransform, setPen, setStyle, setTransform
 
Methods inherited from class cox.jmatt.java.MathTools.markup.Tag
_addAttribute, _addAttributes, _addNAttribute, _asBoolean, _asDouble, _asInt, _attributes, _clampNAttribute, _clampNAttribute, _fixKey, _setEnableXMLTag, badPizza, closeTag, configureTagFromGlobalPizza, makeTag, openTag, toString, validString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymbolTag

protected SymbolTag(StyleTag.TagKeys pKey)
Constructor provided for subclasses.

Method Detail

newInstance

public static SymbolTag newInstance(java.lang.String pTagID)
This is the only way to construct an instance of this class. If the ID argument is null or blank the return value is null!


setID

public void setID(java.lang.String pID)
Overridden to ensure the ID set is valid.

Overrides:
setID in class GroupTag

reset

public void reset()
Overridden to preserve the ID. To change it use reset(String) or re-set manually afterward.

Overrides:
reset in class GroupTag

reset

public void reset(java.lang.String newID)
Call this method to clear data and re-set the ID in one fell swoop.

Overrides:
reset in class GroupTag

setPAR

public SymbolTag setPAR(java.lang.String par)
Set aspect ratio preservation for this symbol.

See Also:
DrawableContainerTag._setPAR(java.lang.String)

setViewBox

public SymbolTag setViewBox(java.lang.String pVBox)
Set the 'viewBox=' attribute. This should be four space-separated numbers given as a single String.

See Also:
DrawableContainerTag._setViewBox(java.lang.String)