Previous Next Package
Class MIDICompose.Ghost
java.lang.Object
|
+----MIDICompose.MIDIObject
|
+----MIDICompose.Ghost
- public class Ghost
- extends MIDIObject
- implements Channelable, Amountable, Lengthable, Pitchable
A Ghost is a copy of another MIDIObject, but if the MIDIObject changes, the Ghost changes
too. And if you change the Ghost, the original MIDIObject will change too. To disable the
possibility to change the Ghost, a Ghost can be set uneditable. A copy of a Ghost is also
a Ghost of the original MIDIObject.
-
Ghost(MIDIObject)
- Creates new Ghost of MIDIObject.
-
Ghost(int, boolean, MIDIObject)
- Creates new Ghost of MIDIObject at deltaTime and set editable or not.
All methods from interfaces are implemented, but not listed here!
All interface-methods only take effect if Ghost is editable.
-
editable()
- Returns whether Ghost is editable or not.
-
setEditable(boolean)
- Set Ghost editable or not.
Ghost
public Ghost(MIDIObject object)
- Creates a new Ghost of a MIDIObject (not editable).
- Parameters:
- object - any MIDIObject.
Ghost
public Ghost(int deltaTime,
boolean editable,
MIDIObject object)
- Creates a new Ghost of a MIDIObject.
- Parameters:
- deltaTime - any int (>= 0).
- editable - true for editable, false for uneditable.
- object - any MIDIObject.
editable
public boolean editable()
- Returns whether Ghost is editable or not.
- Returns:
- true if editable, false if not.
setEditable
public void setEditable(boolean editable)
- Sets Ghost editable or not.
- Parameters:
- editable - true for editable, false for not.
Previous Next Package