|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauditory.described.AbstractContent
public abstract class AbstractContent
A partial encapsulation of a piece of described auditory content
Field Summary | |
---|---|
protected boolean |
audible
|
protected boolean |
dotted
|
protected boolean |
playing
|
protected int |
type
|
Constructor Summary | |
---|---|
AbstractContent()
Default Constructor |
|
AbstractContent(int type,
boolean dotted)
Explicit Value Constructor |
Method Summary | |
---|---|
int |
getType()
Get the type of this AbstractContent [i.e., 1 for whole notes, 2 for half notes, etc...] (required by MidiSound) |
boolean |
isDotted()
Is this AbstractContent dotted? (required by MidiSound) |
void |
render(javax.sound.midi.MidiChannel channel)
Render this AbstractContent on the given MidiChannel (required by MidiSound) |
void |
setAudible(boolean audible)
Set whether this AbstractContent is audible or note |
protected void |
setDotted(boolean dotted)
Set whether this AbstractContent is dotted |
protected void |
setType(int type)
Set the type of this AbstractContent |
protected abstract void |
startPlaying(javax.sound.midi.MidiChannel channel)
Start playing this AbstractContent on the given MidiChannel |
protected abstract void |
stopPlaying(javax.sound.midi.MidiChannel channel)
Start playing this AbstractContent on the given MidiChannel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean audible
protected boolean dotted
protected boolean playing
protected int type
Constructor Detail |
---|
public AbstractContent()
public AbstractContent(int type, boolean dotted)
type
- 1 for whole notes, 2 for half notes, etc...dotted
- Whether the note is dottedMethod Detail |
---|
public int getType()
getType
in interface Content
public boolean isDotted()
isDotted
in interface Content
public void render(javax.sound.midi.MidiChannel channel)
render
in interface Content
channel
- The MIDI channel to usepublic void setAudible(boolean audible)
setAudible
in interface Content
audible
- true to make it audible; false otherwiseprotected void setDotted(boolean dotted)
dotted
- Whether the note is dottedprotected void setType(int type)
type
- 1 for whole notes, 2 for half notes, etc...protected abstract void startPlaying(javax.sound.midi.MidiChannel channel)
channel
- The MIDI channel to useprotected abstract void stopPlaying(javax.sound.midi.MidiChannel channel)
channel
- The MIDI channel to use
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |