Hi Eliot,
I'm answering you on the group : so this answered is indexed and can
also be reused by newcomers.
I would like to be able to draw in the window myself, eg, I would like
to annotate the notes. In the picture in
the link above, eg, I would like to write the names of the required
strings to the right of the note heads.
Is there a simple way of getting the list of bounding rects for each
note, togther with the name of the note? If I want to color individual
notes?
Hints would be much appreciated. I guess this is iubito's area.
>>>>
iubito made a lot of improvements but the global design stayed the
same.
The score rendition main entry point is the
abc.ui.swing.JScoreComponent
you "feed" this object with the Tune you want to get rendered.
A "Tune" is composed of MusicElement that can be retrieved from
getMusic() on the Tune instance.
For each MusicElement you can get access to its graphical
representation using
JScoreElement getRenditionElementFor(MusicElement elmnt)
this method gives the match between the pure music element and its
graphical representation.
On a JScoreElement then, you can ask for the bounding box :
getBoundingBox()
You can have a look at the whole javadoc here :
http://abc4j.googlecode.com/svn/trunk/docs/api/index.html
Hope this helps,
Cheers
Lionel.
--
You received this message because you are subscribed to the Google Groups "abc4j" group.
To post to this group, send email to
ab...@googlegroups.com.
To unsubscribe from this group, send email to
abc4j+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/abc4j?hl=en.