TimeConditionpublic abstract class TimeCondition extends Object A TimeCondition represents a value in a
TimedElementSupport begin or end conditions list. |
Fields Summary |
---|
boolean | isBeginControls whether this condition is part of a begin or end list | TimedElementSupport | timedElementThe associated TimedElement |
Constructors Summary |
---|
public TimeCondition(TimedElementSupport timedElement, boolean isBegin)As a result of constructing a new TimeCondition , the
condition is added to the associated TimedElementSupport 's
begin or end list of conditions.
if (timedElement == null) {
throw new NullPointerException();
}
this.timedElement = timedElement;
this.isBegin = isBegin;
timedElement.addTimeCondition(this);
|
Methods Summary |
---|
protected static java.lang.String | toStringTrait(java.util.Vector v)Converts a vector of TimeCondition instances to a string trait value.
final int n = v.size();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < n - 1; i++) {
TimeCondition tc = (TimeCondition) v.elementAt(i);
sb.append(tc.toStringTrait());
sb.append(SVGConstants.SEMI_COLON);
}
sb.append(((TimeCondition) v.elementAt(n - 1)).toStringTrait());
return sb.toString();
| protected abstract java.lang.String | toStringTrait()Converts this TimeCondition to a String trait.
|
|