|
|||||||||
| 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.Barline
A Barline has a type, extends to, number of staves and optional tags: thickness, width and line quality.
| Nested Class Summary | |
static class |
Barline.ExtendsTo
A Barline.ExtendsTo has constants for the legal "extends to" values. |
static class |
Barline.Type
A Barline.Type has constants for the legal barline types. |
| Field Summary |
| Fields inherited from class org.niffty.MusicSymbol |
_tags |
| Constructor Summary | |
Barline(Barline.Type type,
Barline.ExtendsTo extendsTo,
int numberOfStaves,
Tags tags)
Creates a new Barline with the given parameters. |
|
| Method Summary | |
void |
draw(java.awt.Graphics graphics)
Draw this object |
Barline.ExtendsTo |
getExtendsTo()
Returns the "extends to" value. |
int |
getNumberOfStaves()
Returns the number of staves used if getExtendsTo() is ExtendsTo.BOTTOM_OF_STAFF |
FinalPoint |
getScreenHotspot()
This is a method of the Anchored interface. |
Barline.Type |
getType()
Returns the type of barline. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class org.niffty.MusicSymbol |
findDefaultAnchor, findLeftPositionedX, findMultiNodes, getIndex, getParentTimeSlice, getTags, isLeftPositionedSymbol, 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 Barline(Barline.Type type,
Barline.ExtendsTo extendsTo,
int numberOfStaves,
Tags tags)
type - the Type constant. This must not be null.extendsTo - the ExtendsTo constant. This must not be null.numberOfStaves - see getNumberOfStaves()tags - the tags for this music symbol. If this is null,
then this uses an empty Tags object.| Method Detail |
public Barline.Type getType()
public Barline.ExtendsTo getExtendsTo()
public int getNumberOfStaves()
public void invalidate()
invalidate in class MusicSymbolpublic FinalPoint getScreenHotspot()
MusicSymbol
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.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||