|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenpiano.piano.Key
public class Key
The Key class for keys in a piano
| Method Summary | |
|---|---|
Boolean |
isKeyMarked()
Returns true if a key is marked |
void |
markKey(Boolean mark)
Marks a key |
void |
pressKey()
Presses a key |
void |
releaseKey()
Releases a key |
void |
setMarkKeyFactor(int color,
float factor)
Sets the factor of the color depth of the key (0.0-1.0) |
void |
setMarkKeyOff()
Sets the factor of the color depth of the key (0.0-1.0) |
void |
showKey(Boolean useable)
Draws the key |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Boolean isKeyMarked()
public void markKey(Boolean mark)
mark - true if a key should be markedpublic void pressKey()
public void releaseKey()
public void setMarkKeyFactor(int color,
float factor)
factor - the factor of the color depthpublic void setMarkKeyOff()
factor - the factor of the color depthpublic void showKey(Boolean useable)
useable - true if key is playable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||