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.

Constructor Index

 o Ghost(MIDIObject)
Creates new Ghost of MIDIObject.
 o Ghost(int, boolean, MIDIObject)
Creates new Ghost of MIDIObject at deltaTime and set editable or not.

Method Index

All methods from interfaces are implemented, but not listed here!
All interface-methods only take effect if Ghost is editable.
 o editable()
Returns whether Ghost is editable or not.
 o setEditable(boolean)
Set Ghost editable or not.

Constructors

 o Ghost
 public Ghost(MIDIObject object)
Creates a new Ghost of a MIDIObject (not editable).

Parameters:
object - any MIDIObject.
 o 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.

Methods

 o editable
 public boolean editable()
Returns whether Ghost is editable or not.

Returns:
true if editable, false if not.
 o setEditable
 public void setEditable(boolean editable)
Sets Ghost editable or not.

Parameters:
editable - true for editable, false for not.

 Previous  Next          Package