Class TimeImpl

java.lang.Object
org.loboevolution.html.dom.svgimpl.TimeImpl
All Implemented Interfaces:
Time

public class TimeImpl extends Object implements Time

TimeImpl class.

  • Constructor Details

    • TimeImpl

      public TimeImpl(String time)

      Constructor for TimeImpl.

      Parameters:
      time - a String object.
  • Method Details

    • getResolved

      public boolean getResolved()
      A boolean indicating whether the current Time has been fully resolved to the document schedule. Note that for this to be true, the current Time must be defined (not indefinite), the syncbase and all Time 's that the syncbase depends on must be defined (not indefinite), and the begin Time of all ascendent time containers of this element and all Time elements that this depends upon must be defined (not indefinite).
      If this Time is based upon an event, this Time will only be resolved once the specified event has happened, subject to the constraints of the time container.
      Note that this may change from true to false when the parent time container ends its simple duration (including when it repeats or restarts).
      Specified by:
      getResolved in interface Time
      Returns:
      a boolean.
    • getResolvedOffset

      public double getResolvedOffset()
      The clock value in seconds relative to the parent time container begin. This indicates the resolved time relationship to the parent time container. This is only valid if resolved is true.
      Specified by:
      getResolvedOffset in interface Time
      Returns:
      a double.
    • getTimeType

      public short getTimeType()
      A code representing the type of the underlying object, as defined above.
      Specified by:
      getTimeType in interface Time
      Returns:
      a short.
    • getOffset

      public double getOffset()
      The clock value in seconds relative to the syncbase or eventbase. Default value is 0 .
      Specified by:
      getOffset in interface Time
      Returns:
      a double.
    • setOffset

      public void setOffset(double offset)

      setOffset.

      Specified by:
      setOffset in interface Time
      Parameters:
      offset - a double.
    • getBaseElement

      public Element getBaseElement()
      The base element for a sync-based or event-based time.
      Specified by:
      getBaseElement in interface Time
      Returns:
      a Element object.
    • setBaseElement

      public void setBaseElement(Element baseElement)

      setBaseElement.

      Specified by:
      setBaseElement in interface Time
      Parameters:
      baseElement - a Element object.
    • getBaseBegin

      public boolean getBaseBegin()
      If true , indicates that a sync-based time is relative to the begin of the baseElement. If false , indicates that a sync-based time is relative to the active end of the baseElement.
      Specified by:
      getBaseBegin in interface Time
      Returns:
      a boolean.
    • setBaseBegin

      public void setBaseBegin(boolean baseBegin)

      setBaseBegin.

      Specified by:
      setBaseBegin in interface Time
      Parameters:
      baseBegin - a boolean.
    • getEvent

      public String getEvent()
      The name of the event for an event-based time. Default value is null .
      Specified by:
      getEvent in interface Time
      Returns:
      a String object.
    • setEvent

      public void setEvent(String event)

      setEvent.

      Specified by:
      setEvent in interface Time
      Parameters:
      event - a String object.
    • getMarker

      public String getMarker()
      The name of the marker from the media element, for media marker times. Default value is null .
      Specified by:
      getMarker in interface Time
      Returns:
      a String object.
    • setMarker

      public void setMarker(String marker)

      setMarker.

      Specified by:
      setMarker in interface Time
      Parameters:
      marker - a String object.
    • getClockMilliSecs

      protected static float getClockMilliSecs(String clockVal)

      getClockMilliSecs.

      Parameters:
      clockVal - a String object.
      Returns:
      a float.