1 package camidion.chordhelper.midieditor;
3 import javax.swing.JLabel;
5 import camidion.chordhelper.music.Key;
6 import camidion.chordhelper.music.NoteSymbolLanguage;
11 public class KeySignatureLabel extends JLabel {
13 public KeySignatureLabel() { clear(); }
14 public Key getKey() { return key; }
15 public void setKeySignature( Key key ) {
19 setToolTipText("Key: Unknown");
23 setText( "key:" + key.toString() );
25 "Key: " + key.toStringIn(NoteSymbolLanguage.NAME)
26 + " " + key.toStringIn(NoteSymbolLanguage.IN_JAPANESE)
27 + " (" + key.signatureDescription() + ")"
31 public void clear() { setKeySignature( (Key)null ); }