Class AutomationValue

  • java.lang.Object
    • uk.ac.qmul.eecs.depic.daw.AutomationValue
  • All Implemented Interfaces:
    java.lang.Comparable<AutomationValue>, Sequence.Value


    public abstract class AutomationValue
    extends java.lang.Object
    implements java.lang.Comparable<AutomationValue>, Sequence.Value
    This class represent a value in an Automation. An automation is a set of line envelopes and a value represent one end of an automation line. Therefore an automation value normally points to where the automation changes its slope. Since an automation is a 2D graph
    • Constructor Detail

      • AutomationValue

        public AutomationValue(float position,
                               float value)
    • Method Detail

      • setTimePosition

        public void setTimePosition(float position)
      • getTimePosition

        public float getTimePosition()
        Returns the position of this automation value in milliseconds The position represents where this value is on time
        Specified by:
        getTimePosition in interface Sequence.Value
        Returns:
        the position of this automation value in milliseconds
      • setValue

        public void setValue(float value)
      • setLocation

        public void setLocation(float position,
                                float value)
      • getAutomation

        public abstract Automation getAutomation()
        Returns the enclosing Automation.
        Returns:
        the enclosing Automation.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object