cox.jmatt.java.MathTools.markup.svg
Enum StyleTag.TagKeys

java.lang.Object
  extended by java.lang.Enum<StyleTag.TagKeys>
      extended by cox.jmatt.java.MathTools.markup.svg.StyleTag.TagKeys
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StyleTag.TagKeys>
Enclosing class:
StyleTag

public static enum StyleTag.TagKeys
extends java.lang.Enum<StyleTag.TagKeys>

This enum is used internally by the SVG classes to store defaults and other such information.


Enum Constant Summary
CIRCLE_TAG
           
CLIP_TAG
           
ELLIPSE_TAG
           
GRADIENT_TAG
           
GROUP_TAG
           
LINE_TAG
           
MARKER_TAG
           
MASK_TAG
           
PATH_TAG
           
PATTERN_TAG
           
POLYGON_TAG
           
RECTANGLE_TAG
           
STYLE_TAG
           
SVG_TAG
           
SYMBOL_TAG
           
TEXT_TAG
           
TSPAN_TAG
           
USE_TAG
           
 
Method Summary
 boolean canHaveDefs()
          Can the tag have a 'defs' block or not?
 java.util.Hashtable<java.lang.String,java.lang.String> getAttributes()
          Fetch the attributes stored, once.
 java.lang.String getContent()
          Fetch the stored content String, once.
 java.lang.String getDefaultPen()
          Get the default pen number.
 java.lang.String getDefaultStyle()
          Get the default style.
 java.lang.String getDefaultTransforms()
          Get the default transforms.
 java.lang.String getTagName()
          Get the tag name to create the SVG tags.
 boolean isInDefs()
          Does the tag belong in a 'defs' block ONLY?
 void setDefaultPen(int pPen)
          Set the default pen number.
 void setDefaultStyle(StylePen pStyle)
          Set the default style.
 void setDefaultTransforms(TransformPen pTransforms)
          Set the default transforms.
 void setTemp(java.util.Hashtable<java.lang.String,java.lang.String> tAtts, java.lang.String tContent)
          Set the tag's content and attributes, if used for copying.
static StyleTag.TagKeys valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StyleTag.TagKeys[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STYLE_TAG

public static final StyleTag.TagKeys STYLE_TAG

CIRCLE_TAG

public static final StyleTag.TagKeys CIRCLE_TAG

ELLIPSE_TAG

public static final StyleTag.TagKeys ELLIPSE_TAG

LINE_TAG

public static final StyleTag.TagKeys LINE_TAG

RECTANGLE_TAG

public static final StyleTag.TagKeys RECTANGLE_TAG

POLYGON_TAG

public static final StyleTag.TagKeys POLYGON_TAG

TEXT_TAG

public static final StyleTag.TagKeys TEXT_TAG

TSPAN_TAG

public static final StyleTag.TagKeys TSPAN_TAG

USE_TAG

public static final StyleTag.TagKeys USE_TAG

PATH_TAG

public static final StyleTag.TagKeys PATH_TAG

CLIP_TAG

public static final StyleTag.TagKeys CLIP_TAG

MASK_TAG

public static final StyleTag.TagKeys MASK_TAG

MARKER_TAG

public static final StyleTag.TagKeys MARKER_TAG

PATTERN_TAG

public static final StyleTag.TagKeys PATTERN_TAG

GROUP_TAG

public static final StyleTag.TagKeys GROUP_TAG

SYMBOL_TAG

public static final StyleTag.TagKeys SYMBOL_TAG

SVG_TAG

public static final StyleTag.TagKeys SVG_TAG

GRADIENT_TAG

public static final StyleTag.TagKeys GRADIENT_TAG
Method Detail

values

public static StyleTag.TagKeys[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StyleTag.TagKeys c : StyleTag.TagKeys.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StyleTag.TagKeys valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

canHaveDefs

public boolean canHaveDefs()
Can the tag have a 'defs' block or not?


isInDefs

public boolean isInDefs()
Does the tag belong in a 'defs' block ONLY?


setDefaultStyle

public void setDefaultStyle(StylePen pStyle)
Set the default style.


getDefaultStyle

public java.lang.String getDefaultStyle()
Get the default style.


setDefaultPen

public void setDefaultPen(int pPen)
Set the default pen number.


getDefaultPen

public java.lang.String getDefaultPen()
Get the default pen number.


setDefaultTransforms

public void setDefaultTransforms(TransformPen pTransforms)
Set the default transforms.


getDefaultTransforms

public java.lang.String getDefaultTransforms()
Get the default transforms.


getTagName

public java.lang.String getTagName()
Get the tag name to create the SVG tags.


setTemp

public void setTemp(java.util.Hashtable<java.lang.String,java.lang.String> tAtts,
                    java.lang.String tContent)
Set the tag's content and attributes, if used for copying.


getAttributes

public java.util.Hashtable<java.lang.String,java.lang.String> getAttributes()
Fetch the attributes stored, once.


getContent

public java.lang.String getContent()
Fetch the stored content String, once.