org.foray.fotree.svg
Enum SvgObject

java.lang.Object
  extended by java.lang.Enum<SvgObject>
      extended by org.foray.fotree.svg.SvgObject
All Implemented Interfaces:
Serializable, Comparable<SvgObject>

public enum SvgObject
extends Enum<SvgObject>

An enumeration for SVG objects.


Enum Constant Summary
A
          Constant indicating SVG element "a".
ALTGLYPH
          Constant indicating SVG element "altGlyph".
ANIMATE
          Constant indicating SVG element "animate".
ANIMATECOLOR
          Constant indicating SVG element "animateColor".
ANIMATEMOTION
          Constant indicating SVG element "animateMotion".
ANIMATETRANSFORM
          Constant indicating SVG element "animateTransform".
CIRCLE
          Constant indicating SVG element "circle".
CLIPPATH
          Constant indicating SVG element "clipPath".
CURSOR
          Constant indicating SVG element "cursor".
DEFS
          Constant indicating SVG element "defs".
DESC
          Constant indicating SVG element "desc".
ELLIPSE
          Constant indicating SVG element "ellipse".
FEFLOOD
          Constant indicating SVG element "feFlood".
FEGAUSSIANBLUR
          Constant indicating SVG element "feGaussianBlur".
FEMERGE
          Constant indicating SVG element "feMerge".
FEMERGENODE
          Constant indicating SVG element "feMergeNode".
FEOFFSET
          Constant indicating SVG element "feOffset".
FILTER
          Constant indicating SVG element "filter".
FONT
          Constant indicating SVG element "font".
FONT_FACE
          Constant indicating SVG element "font-face".
FONT_FACE_SRC
          Constant indicating SVG element "font-face-src".
FONT_FACE_URI
          Constant indicating SVG element "font-face-uri".
G
          Constant indicating SVG element "g".
GLYPH
          Constant indicating SVG element "glyph".
HKERN
          Constant indicating SVG element "hkern".
IMAGE
          Constant indicating SVG element "image".
LINE
          Constant indicating SVG element "line".
LINEARGRADIENT
          Constant indicating SVG element "linearGradient".
MARKER
          Constant indicating SVG element "marker".
MASK
          Constant indicating SVG element "mask".
MISSING_GLYPH
          Constant indicating SVG element "missing-glyph".
PATH
          Constant indicating SVG element "path".
PATTERN
          Constant indicating SVG element "pattern".
POLYGON
          Constant indicating SVG element "polygon".
POLYLINE
          Constant indicating SVG element "polyline".
RADIALGRADIENT
          Constant indicating SVG element "radialGradient".
RECT
          Constant indicating SVG element "rect".
SET
          Constant indicating SVG element "set".
STOP
          Constant indicating SVG element "stop".
STYLE
          Constant indicating SVG element "style".
SVG
          Constant indicating SVG element "svg".
SWITCH
          Constant indicating SVG element "switch".
SYMBOL
          Constant indicating SVG element "symbol".
TEXT
          Constant indicating SVG element "text".
TEXTPATH
          Constant indicating SVG element "textPath".
TITLE
          Constant indicating SVG element "title".
TREF
          Constant indicating SVG element "tref".
TSPAN
          Constant indicating SVG element "tspan".
USE
          Constant indicating SVG element "use".
VKERN
          Constant indicating SVG element "vkern".
 
Method Summary
static SvgObject svgValueOf(String svgName)
          Similar to the Java 1.5 Enum valueOf(String) method, but operates on the SVG name of the object instead of its enumerated name.
 String toSVG()
          Converts an object name enumeration to its SVG name.
static SvgObject valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SvgObject[] 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

A

public static final SvgObject A
Constant indicating SVG element "a".


ALTGLYPH

public static final SvgObject ALTGLYPH
Constant indicating SVG element "altGlyph".


ANIMATE

public static final SvgObject ANIMATE
Constant indicating SVG element "animate".


ANIMATECOLOR

public static final SvgObject ANIMATECOLOR
Constant indicating SVG element "animateColor".


ANIMATEMOTION

public static final SvgObject ANIMATEMOTION
Constant indicating SVG element "animateMotion".


ANIMATETRANSFORM

public static final SvgObject ANIMATETRANSFORM
Constant indicating SVG element "animateTransform".


CIRCLE

public static final SvgObject CIRCLE
Constant indicating SVG element "circle".


CLIPPATH

public static final SvgObject CLIPPATH
Constant indicating SVG element "clipPath".


CURSOR

public static final SvgObject CURSOR
Constant indicating SVG element "cursor".


DEFS

public static final SvgObject DEFS
Constant indicating SVG element "defs".


DESC

public static final SvgObject DESC
Constant indicating SVG element "desc".


ELLIPSE

public static final SvgObject ELLIPSE
Constant indicating SVG element "ellipse".


FEFLOOD

public static final SvgObject FEFLOOD
Constant indicating SVG element "feFlood".


FEGAUSSIANBLUR

public static final SvgObject FEGAUSSIANBLUR
Constant indicating SVG element "feGaussianBlur".


FEMERGE

public static final SvgObject FEMERGE
Constant indicating SVG element "feMerge".


FEMERGENODE

public static final SvgObject FEMERGENODE
Constant indicating SVG element "feMergeNode".


FEOFFSET

public static final SvgObject FEOFFSET
Constant indicating SVG element "feOffset".


FILTER

public static final SvgObject FILTER
Constant indicating SVG element "filter".


FONT

public static final SvgObject FONT
Constant indicating SVG element "font".


FONT_FACE

public static final SvgObject FONT_FACE
Constant indicating SVG element "font-face".


FONT_FACE_SRC

public static final SvgObject FONT_FACE_SRC
Constant indicating SVG element "font-face-src".


FONT_FACE_URI

public static final SvgObject FONT_FACE_URI
Constant indicating SVG element "font-face-uri".


G

public static final SvgObject G
Constant indicating SVG element "g".


GLYPH

public static final SvgObject GLYPH
Constant indicating SVG element "glyph".


HKERN

public static final SvgObject HKERN
Constant indicating SVG element "hkern".


IMAGE

public static final SvgObject IMAGE
Constant indicating SVG element "image".


LINE

public static final SvgObject LINE
Constant indicating SVG element "line".


LINEARGRADIENT

public static final SvgObject LINEARGRADIENT
Constant indicating SVG element "linearGradient".


MARKER

public static final SvgObject MARKER
Constant indicating SVG element "marker".


MASK

public static final SvgObject MASK
Constant indicating SVG element "mask".


MISSING_GLYPH

public static final SvgObject MISSING_GLYPH
Constant indicating SVG element "missing-glyph".


PATH

public static final SvgObject PATH
Constant indicating SVG element "path".


PATTERN

public static final SvgObject PATTERN
Constant indicating SVG element "pattern".


POLYGON

public static final SvgObject POLYGON
Constant indicating SVG element "polygon".


POLYLINE

public static final SvgObject POLYLINE
Constant indicating SVG element "polyline".


RADIALGRADIENT

public static final SvgObject RADIALGRADIENT
Constant indicating SVG element "radialGradient".


RECT

public static final SvgObject RECT
Constant indicating SVG element "rect".


SET

public static final SvgObject SET
Constant indicating SVG element "set".


STOP

public static final SvgObject STOP
Constant indicating SVG element "stop".


STYLE

public static final SvgObject STYLE
Constant indicating SVG element "style".


SVG

public static final SvgObject SVG
Constant indicating SVG element "svg".


SWITCH

public static final SvgObject SWITCH
Constant indicating SVG element "switch".


SYMBOL

public static final SvgObject SYMBOL
Constant indicating SVG element "symbol".


TEXT

public static final SvgObject TEXT
Constant indicating SVG element "text".


TEXTPATH

public static final SvgObject TEXTPATH
Constant indicating SVG element "textPath".


TITLE

public static final SvgObject TITLE
Constant indicating SVG element "title".


TREF

public static final SvgObject TREF
Constant indicating SVG element "tref".


TSPAN

public static final SvgObject TSPAN
Constant indicating SVG element "tspan".


USE

public static final SvgObject USE
Constant indicating SVG element "use".


VKERN

public static final SvgObject VKERN
Constant indicating SVG element "vkern".

Method Detail

values

public static SvgObject[] 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 (SvgObject c : SvgObject.values())
    System.out.println(c);

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

valueOf

public static SvgObject valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toSVG

public String toSVG()
Converts an object name enumeration to its SVG name. For example, the enumeration SYMBOL converts to the SVG name "symbol".

Returns:
The SVG name for the object enumeration.

svgValueOf

public static SvgObject svgValueOf(String svgName)
Similar to the Java 1.5 Enum valueOf(String) method, but operates on the SVG name of the object instead of its enumerated name. For example, for the SVG object "symbol", the enum is SYMBOL. The Java 1.5 Enum valueOf(String) method would operate on the enum name "SYMBOL". This method instead operates on "symbol".

Parameters:
svgName - The name of the SVG object for which the enumerated value is needed.
Returns:
The enumerated value for svgName.


Copyright © 2017. All rights reserved.