Skip navigation links
eu.bandm.music.top

Class SvgSource.ParamTranslate

    • Field Detail

      • paramType

        protected final String paramType
      • paramName

        protected final String paramName
      • indent

        protected final String indent
      • isTransform

        protected final boolean isTransform
      • reachedValue

        @Opt
        protected @Opt String reachedValue
        Value currently valid in the state of the Svg/Smil processor, either as the endpoint of an interpolation, or set and held as a constant.
      • predecValue

        protected String predecValue
      • currentValue

        protected String currentValue
      • predecTime

        protected double predecTime
      • currentTime

        protected double currentTime
      • ipol

        protected boolean ipol
        Whether between the earlier and later event in pairwise(Event,Event) an interpolation is requested by the tscore source data.
    • Method Detail

      • time

        protected double time(Event e)
      • writeSet

        protected void writeSet()
        Generate the source text which sets the parameter value only of the earlier event.

        ATTENTION, HACK: "set" does not work with "@transform", so we use a VERY FAST animation.

      • pairwise

        public void pairwise(Event predec,
                             Event current)
        Must be overridden by the user to visit the define what to do with each pair of adjacent elements. These are visited in the sequential order of the underlying Iterator. On Execution, that has berformed a Iterator.next(), so that it "points" (e.g. with its Iterator.hasNext() to the successor of the later of both visited elements. Here: Generate either the source text which describes the interpolation between both events, or one which sets the parameter value only of the earlier event. Before processing, predecTime and predecValue correspond to the earlier event. After processing, predecTime and predecValue correspond to the later event = are prepared for the next cyclic call of this method.
        Specified by:
        pairwise in class Util.Pairwise<Event>
      • last

        public void last(Event e)
        Can be overridden by the user to visit the very last element after the last pair is visited by Util.Pairwise.pairwise(Object,Object).. Here: If the very last event's parameter is not reached by the last interpolation, then generate a "setValue" smil event.
        Overrides:
        last in class Util.Pairwise<Event>