Package uk.ac.qmul.eecs.depic.daw
Interface Automation
-
- All Superinterfaces:
- Sequence
- All Known Implementing Classes:
- BeadsAutomation
public interface Automation extends Sequence
An automation in a DAW. Extends Sequence which is an abstraction of an automation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.qmul.eecs.depic.patterns.Sequence
Sequence.Value
-
-
Field Summary
Fields Modifier and Type Field and Description static Automation
NONE_AUTOMATION
NONE_AUTOMATION's colour is white
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description AutomationValue
add(float position, float value)
Adds a newAutomationValue
object to this automation.java.awt.Color
getColor()
Returns the colour to draw this automation graphicallyboolean
remove(Sequence.Value value)
Removes anAutomationValue
object from this automation.void
reset()
Removes all the automation values.-
Methods inherited from interface uk.ac.qmul.eecs.depic.patterns.Sequence
addSequenceListener, getBegin, getEnd, getLen, getRange, getValueAt, getValuesNum, removeSequenceListener
-
-
-
-
Field Detail
-
NONE_AUTOMATION
static final Automation NONE_AUTOMATION
NONE_AUTOMATION's colour is white
-
-
Method Detail
-
add
AutomationValue add(float position, float value)
Adds a newAutomationValue
object to this automation.- Parameters:
position
- the position of the new objectvalue
- the value of the new object- Returns:
- the new automation just created
-
remove
boolean remove(Sequence.Value value)
Removes anAutomationValue
object from this automation.- Parameters:
values
-- Returns:
true
if this automation changed as a result of the call
-
getColor
java.awt.Color getColor()
Returns the colour to draw this automation graphically
-
reset
void reset()
Removes all the automation values.
-
-