|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.parser.AbstractParser
org.apache.batik.parser.TimingParser
public abstract class TimingParser
An abstract base class for SMIL timing value parsers.
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. |
Fields inherited from class org.apache.batik.parser.AbstractParser |
---|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader |
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 Calendar . |
Methods inherited from class org.apache.batik.parser.AbstractParser |
---|
createErrorMessage, doParse, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int TIME_OFFSET
protected static final int TIME_SYNCBASE
protected static final int TIME_EVENTBASE
protected static final int TIME_REPEAT
protected static final int TIME_ACCESSKEY
protected static final int TIME_ACCESSKEY_SVG12
protected static final int TIME_MEDIA_MARKER
protected static final int TIME_WALLCLOCK
protected static final int TIME_INDEFINITE
protected boolean useSVG11AccessKeys
protected boolean useSVG12AccessKeys
Constructor Detail |
---|
public TimingParser(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys)
useSVG11AccessKeys
- allows the use of accessKey() timing
specifiers with a single characteruseSVG12AccessKeys
- allows the use of accessKey() with a
DOM 3 key nameMethod Detail |
---|
protected Object[] parseTimingSpecifier() throws ParseException, IOException
ParseException
IOException
protected String parseName() throws ParseException, IOException
ParseException
IOException
protected Object[] parseIDValue(boolean escaped) throws ParseException, IOException
escaped
- whether a backslash appeared before this timing specifier
ParseException
IOException
protected float parseClockValue() throws ParseException, IOException
ParseException
IOException
protected float parseOffset() throws ParseException, IOException
ParseException
IOException
protected int parseDigits() throws ParseException, IOException
ParseException
IOException
protected float parseFraction() throws ParseException, IOException
ParseException
IOException
protected float parseUnit() throws ParseException, IOException
ParseException
IOException
protected Calendar parseWallclockValue() throws ParseException, IOException
Calendar
.
ParseException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |