Package heronarts.lx.clip
Class LXClipEvent
java.lang.Object
heronarts.lx.clip.LXClipEvent
- All Implemented Interfaces:
LXSerializable
,Comparator<LXClipEvent>
- Direct Known Subclasses:
MidiNoteClipEvent
,ParameterClipEvent
,PatternClipEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LXComponent
protected double
protected static final String
protected final LXClipLane
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(LXClipEvent arg0, LXClipEvent arg1) abstract void
execute()
double
getBasis()
double
void
load
(LX lx, JsonObject obj) Restores this instance from a JSON objectvoid
save
(LX lx, JsonObject obj) Serializes this instance into the JSON objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
lane
-
component
-
cursor
protected double cursor -
KEY_CURSOR
- See Also:
-
-
Method Details
-
getCursor
public double getCursor() -
getBasis
public double getBasis() -
compare
- Specified by:
compare
in interfaceComparator<LXClipEvent>
-
execute
public abstract void execute() -
load
Description copied from interface:LXSerializable
Restores this instance from a JSON object- Specified by:
load
in interfaceLXSerializable
- Parameters:
lx
- LX instanceobj
- Object to deserialize
-
save
Description copied from interface:LXSerializable
Serializes this instance into the JSON object- Specified by:
save
in interfaceLXSerializable
- Parameters:
lx
- LX instanceobj
- Object to serialize into
-