| java.lang.Object com.sun.perseus.parser.AbstractParser com.sun.perseus.parser.ClockParser com.sun.perseus.parser.TimeConditionParser
TimeConditionParser | public class TimeConditionParser extends ClockParser (Code) | | Parser for SVG time condition values, as defined in the SVG specification
for timing attributes:
http://www.w3.org/TR/SVG11/animate.html#TimingAttributes
author: Chris Campbell version: $Id: TimeConditionParser.java,v 1.4 2006/04/21 06:40:40 st125089 Exp $ |
isLetterOrDigit | final public static boolean isLetterOrDigit(char c)(Code) | | Do not use Character.isLetterOrDigit because it is not supported on
all Java platforms.
Parameters: c - the character to test. true if c is a letter or a digit. |
parseAccessKey | final protected void parseAccessKey()(Code) | | Parses an accessKey time condition. The current character is assumed
to be the first character after "accesskey(". If parsing is successful,
an AccessKeyCondition is added to the list of time conditions and the
current character is the character that immediately follows the
access key value (either the ')' or the optional offset).
|
parseBeginEndAttribute | public TimeCondition[] parseBeginEndAttribute(String attrValue, TimedElementNode ten, boolean isBegin)(Code) | | Parses a begin/end timing attribute value. This method throws an
IllegalArgumentException if the input argument's
syntax does not conform to that of a clock value, as defined
by the SVG animate tag specification.
Parameters: attrValue - the value to parse. Parameters: ten - the TimedElementNode for which the attribute is parsed. Parameters: isBegin - defines whether this is a begin attribute. an array of TimeConditions corresponding to theinput attrubute value. |
parseEvent | final protected void parseEvent(String id, String eventType)(Code) | | Parses an event base time condition. If id is
null , the event base id will be "unspecified", and the
eventType is assumed to be non-null (the current character
is assumed to be the first character after the event type). If
eventType is null , the event type will be
parsed (the current character is assumed to be the first character after
the event base id and dot, e.g. "foo.").
If parsing is successful, an EventBaseCondition is added to the list
of time conditions and the current character is the character that
immediately follows the event base value (either the id, eventType,
or the optional offset).
Parameters: id - the identifier for this time condition; can be null Parameters: eventType - the event type for this time condition; can be nullif the id was already parsed |
parseOffset | final protected void parseOffset()(Code) | | Parses an offset time condition. The current character is assumed
to be '+', '-', or a numeral. If parsing is successful, an
OffsetCondition is added to the list of time conditions and the
current character is the character that immediately follows the offset
value.
See Also: TimeConditionParser.parseSignedClockValue |
parseOptionalOffset | final protected long parseOptionalOffset()(Code) | | Parses an optional offset value. If the current character is a sign
value ('+' or '-'), the offset value is parsed and returned as a long
value. If the offset value is not present (current is
';' or -1), this method returns zero. If some other character is
encountered, an IllegalArgumentException is thrown.
a signed long offset value (in milliseconds) See Also: TimeConditionParser.parseSignedClockValue |
parseOther | final protected void parseOther()(Code) | | Parses a time condition with an optional id prefix. Delegates to one
of the other parse*() methods, depending on whether the
string matches a repeat, syncbase, or event time condition.
|
parseRepeat | final protected void parseRepeat(String id)(Code) | | Parses a repeat time condition. The current character is assumed
to be the first character after "repeat(". If parsing is successful,
a RepeatCondition is added to the list of time conditions and the
current character is the character that immediately follows the
repeat value (either the ')' or the optional offset).
Parameters: id - the identifier for this time condition; if null, the eventbase id will be "unspecified" |
parseSignedClockValue | final protected long parseSignedClockValue()(Code) | | Helper method that parses a signed clock value (one that may or may
not be preceded by a '-' or '+' sign. Returns the parsed clock value
as a long offset. If the clock string begins with a '-' sign, the
returned offset value will be negative. If the clock string begins
with a '+' sign (or is unsigned), the returned offset value will be
positive.
a signed long offset value (in milliseconds) See Also: ClockParser |
parseSyncBase | final protected void parseSyncBase(String id, boolean isBeginSync)(Code) | | Parses a syncbase time condition. The current character is assumed
to be the first character after "begin" or "end". If parsing is
successful, a SyncBaseCondition is added to the list of time conditions
and the current character is the character that immediately follows the
syncbase value (either the "begin", "end", or the optional offset).
Parameters: id - the identifier for this time condition; should not be null Parameters: isBeginSync - true if this condition is on the syncBase's begincondition; false if this condition is on the syncBase's end condition. |
toDOMEventType | final public static String toDOMEventType(String smilEventType)(Code) | | Converts the event to the DOMEvent type. This is required because for some
events, the name used in the SMIL begin/end attribute is not the same as
the DOM event so some translation is needed.
Parameters: smilEventType - the name of the animation event type. the DOM Level 2 Event name. See Also: http://www.w3.org/TR/SVG11/interact.html#SVGEvents |
|
|