org.apache.batik.parser
public abstract class TimingParser extends AbstractParser
Field Summary | |
---|---|
protected static int | TIME_ACCESSKEY |
protected static int | TIME_ACCESSKEY_SVG12 |
protected static int | TIME_EVENTBASE |
protected static int | TIME_INDEFINITE |
protected static int | TIME_MEDIA_MARKER |
protected static int | TIME_OFFSET |
protected static int | TIME_REPEAT |
protected static int | TIME_SYNCBASE |
protected static int | TIME_WALLCLOCK |
protected boolean | useSVG11AccessKeys
Allows the use of accessKey() timing specifiers with a single
character, as specified in SVG 1.1. |
protected boolean | useSVG12AccessKeys
Allows the use of accessKey() timing specifiers with a DOM 3
key name, as specified in SVG 1.2. |
Constructor Summary | |
---|---|
TimingParser(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys)
Creates a new TimingParser. |
Method Summary | |
---|---|
protected float | parseClockValue()
Parses a clock value. |
protected int | parseDigits()
Parses a sequence of digits and returns the integer. |
protected float | parseFraction()
Parses a '.' and a sequence of digits and returns the float. |
protected Object[] | parseIDValue(boolean escaped)
Parses a timing specifier that starts with a word. |
protected String | parseName()
Parses an XML name with optional escaping in the middle. |
protected float | parseOffset()
Parses an offset value. |
protected Object[] | parseTimingSpecifier()
Parses a timing specifier. |
protected float | parseUnit()
Parses a time unit and returns the float for the multiplier. |
protected Calendar | parseWallclockValue()
Parses a wallclock value and returns it as a {@link Calendar}. |
Parameters: useSVG11AccessKeys allows the use of accessKey() timing specifiers with a single character useSVG12AccessKeys allows the use of accessKey() with a DOM 3 key name
Parameters: escaped whether a backslash appeared before this timing specifier