Package jmslexamples
Class TextJob
java.lang.Object
com.softsynth.jmsl.MusicJob
jmslexamples.TextJob
- All Implemented Interfaces:
Composable
,Playable
,java.lang.Runnable
public class TextJob extends MusicJob
TextJob.java
A MusicJob subclass that has a drawing canvas on which it can draw
messages. For testing scheduling without having to
hear anything.
- Author:
- Phil Burk and Nick Didkovsky
-
Field Summary
Fields inherited from class com.softsynth.jmsl.MusicJob
repeatCount
-
Method Summary
Modifier and Type Method Description boolean
getState()
return the "state" of the TextJob, used for reversing color, for examplevoid
printMsg()
paint TextJob's private message to canvasvoid
reverseState()
reverse the boolean state of the TextJobvoid
setColor(java.awt.Color kolor)
set the drawing colorMethods inherited from class com.softsynth.jmsl.MusicJob
add, addPlayLurker, addRepeatPlayable, addStartPlayable, addStopPlayable, advanceCurrentTime, contains, elements, finish, finishAll, getChild, getChildren, getCurrentTime, getDataTranslator, getDuration, getInstrument, getName, getParent, getPlayLurkers, getRepeatCount, getRepeatPause, getRepeatPlayables, getRepeats, getStartDelay, getStartPause, getStartPlayables, getStartTime, getStopDelay, getStopPlayables, getTimeStretch, getTransposition, halt, indexOf, insert, internalRepeat, isRunning, launch, launch, main, play, play, print, printHierarchy, printHierarchy, remove, remove, removeAll, removeAllPlayLurkers, removeAllRepeatPlayables, removeAllStartPlayables, removeAllStopPlayables, removePlayLurker, removeRepeatPlayable, removeStartPlayable, removeStopPlayable, repeat, run, setCurrentTime, setDataTranslator, setDuration, setInstrument, setName, setParent, setRepeatPause, setRepeats, setStartDelay, setStartPause, setStartTime, setStopDelay, setTimeStretch, setTransposition, size, start, stop, timeStretch, transposition, waitForDone
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getState
public boolean getState()return the "state" of the TextJob, used for reversing color, for example -
reverseState
public void reverseState()reverse the boolean state of the TextJob -
setColor
public void setColor(java.awt.Color kolor)set the drawing color -
printMsg
public void printMsg()paint TextJob's private message to canvas
-