org.herac.tuxguitar.gui.editors.chord
Class ChordSelector

java.lang.Object
  extended by Composite
      extended by org.herac.tuxguitar.gui.editors.chord.ChordSelector

public class ChordSelector
extends Composite


Field Summary
static java.lang.String[][] KEY_NAMES
           
 
Constructor Summary
ChordSelector(ChordDialog dialog, Composite parent, int style, int[] tuning)
           
 
Method Summary
protected  void adjustWidgetAvailability()
          adjusts the widgets availability according to chord theory options
 void adjustWidgets(int tonic, int chordBasic, int alteration, int bass, int plusMinus, int addBoolean, int index5, int index9, int index11)
          Sets all the widgets' fields into recognized chord (tonic, bass, chord, alterations)
protected  List get_11List()
           
protected  List get_5List()
           
protected  List get_9List()
           
protected  Button getAddCheck()
           
protected  List getAlterationList()
           
protected  Combo getBassCombo()
           
protected  List getChordList()
           
protected  ChordDialog getDialog()
           
protected  Button getFlatButton()
           
protected  List getPlusMinusList()
           
 boolean getRefresh()
           
protected  Button getSharpButton()
           
protected  List getTonicList()
           
 int[] getTuning()
           
 void init()
           
protected  void initChordWidgets()
           
protected  void insertTonicNames(boolean sharp)
           
 void setRefresh(boolean refresh)
           
 void setTuning(int[] tuning)
           
protected  void showChord()
           
protected  void updateWidget(Button widget, boolean enabled)
           
protected  void updateWidget(List widget, boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_NAMES

public static final java.lang.String[][] KEY_NAMES
Constructor Detail

ChordSelector

public ChordSelector(ChordDialog dialog,
                     Composite parent,
                     int style,
                     int[] tuning)
Method Detail

init

public void init()

initChordWidgets

protected void initChordWidgets()

insertTonicNames

protected void insertTonicNames(boolean sharp)

showChord

protected void showChord()

updateWidget

protected void updateWidget(List widget,
                            boolean enabled)

updateWidget

protected void updateWidget(Button widget,
                            boolean enabled)

adjustWidgets

public void adjustWidgets(int tonic,
                          int chordBasic,
                          int alteration,
                          int bass,
                          int plusMinus,
                          int addBoolean,
                          int index5,
                          int index9,
                          int index11)
Sets all the widgets' fields into recognized chord (tonic, bass, chord, alterations)


adjustWidgetAvailability

protected void adjustWidgetAvailability()
adjusts the widgets availability according to chord theory options


getRefresh

public boolean getRefresh()

setRefresh

public void setRefresh(boolean refresh)

setTuning

public void setTuning(int[] tuning)

getTuning

public int[] getTuning()

getDialog

protected ChordDialog getDialog()

getTonicList

protected List getTonicList()

getChordList

protected List getChordList()

getAlterationList

protected List getAlterationList()

getSharpButton

protected Button getSharpButton()

getFlatButton

protected Button getFlatButton()

getBassCombo

protected Combo getBassCombo()

getAddCheck

protected Button getAddCheck()

getPlusMinusList

protected List getPlusMinusList()

get_5List

protected List get_5List()

get_9List

protected List get_9List()

get_11List

protected List get_11List()