|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.niffty.HeirarchyNode
|
+--org.niffty.MusicSymbol
|
+--org.niffty.KeySignature
A KeySignature has a standard code indicating the number of sharps or flats
| Field Summary |
| Fields inherited from class org.niffty.MusicSymbol |
_tags |
| Constructor Summary | |
KeySignature(int standardCode,
Tags tags)
Creates a new KeySignature with the given parameters. |
|
| Method Summary | |
void |
draw(java.awt.Graphics graphics)
Draw this object |
FinalPoint |
getScreenHotspot()
Get the hotspot for this object in screen coordinates. |
int |
getStandardCode()
Returns the standard code indicating the number of sharps or flats: 0 = no sharps or flats, 1-7 =1-7 sharps, 8-14 = 1-7 flats, -1 - -7 = 1-7 naturals in the sharp positions, -8 - -14 = 1-7 naturals in the flat positions |
void |
invalidate()
This is automatically called after the object is modified to force this to recompute all its values when the "get" method is called for the value. |
boolean |
isLeftPositionedSymbol()
Return true if this is a symbol, like a cleff change, which appears to the left of the main symbol in the time slice, like the stem. |
java.lang.String |
toString()
|
| Methods inherited from class org.niffty.MusicSymbol |
findDefaultAnchor, findLeftPositionedX, findMultiNodes, getIndex, getParentTimeSlice, getTags, nextInstanceOfInScore, previousInstanceOf, previousInstanceOfInScore, previousInstanceOfInStaff |
| Methods inherited from class org.niffty.HeirarchyNode |
addChild, getChild, getChildCount, getParentNode, nextInHeirarchy, previousInHeirarchy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public KeySignature(int standardCode,
Tags tags)
standardCode - see getStandardCode()tags - the tags for this music symbol. If this is null,
then this uses an empty Tags object.| Method Detail |
public int getStandardCode()
public void invalidate()
invalidate in class MusicSymbolpublic FinalPoint getScreenHotspot()
getScreenHotspot in interface AnchoredgetScreenHotspot in class MusicSymbolFinalPoint.newPoint()public void draw(java.awt.Graphics graphics)
draw in class MusicSymbolpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isLeftPositionedSymbol()
MusicSymbol
isLeftPositionedSymbol in class MusicSymbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||