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

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

public class ChordCreatorUtil
extends java.lang.Object

Class that helps to create a chord from information put in ChordSelector dialog. Also contains ChordDatabase static field.


Nested Class Summary
protected  class ChordCreatorUtil.PriorityComparator
          used to sort the array
protected  class ChordCreatorUtil.PriorityItem
          used just to sort StringValue ArrayLists by priorities
 
Field Summary
static int MAX_FRET_SPAN
          Maximum fret distance for a chord
static int MAX_STRINGS
          Maximum number of strings variable - has twin in TrackPropertiesAction class
 
Method Summary
protected  int checkForOverlapping(int checkIt)
          We have to make sure that if required note is already inside expanding notes array so we don't put it twice...
static void getChords(ChordCreatorListener listener, int[] tuning, int chordIndex, int alteration, int plusMinus, boolean add, int add5, int add9, int add11, int bassTonic, int chordTonic, boolean sharp)
           
protected  void getChords(int[] tuning, int chordIndex, int alteration, int plusMinus, boolean add, int add5, int add9, int add11, int bassTonic, int chordTonic, boolean sharp)
           
static long getNewProcess()
           
 boolean isValidProcess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_STRINGS

public static final int MAX_STRINGS
Maximum number of strings variable - has twin in TrackPropertiesAction class

See Also:
Constant Field Values

MAX_FRET_SPAN

public static final int MAX_FRET_SPAN
Maximum fret distance for a chord

See Also:
Constant Field Values
Method Detail

isValidProcess

public boolean isValidProcess()

getNewProcess

public static long getNewProcess()

getChords

public static void getChords(ChordCreatorListener listener,
                             int[] tuning,
                             int chordIndex,
                             int alteration,
                             int plusMinus,
                             boolean add,
                             int add5,
                             int add9,
                             int add11,
                             int bassTonic,
                             int chordTonic,
                             boolean sharp)

getChords

protected void getChords(int[] tuning,
                         int chordIndex,
                         int alteration,
                         int plusMinus,
                         boolean add,
                         int add5,
                         int add9,
                         int add11,
                         int bassTonic,
                         int chordTonic,
                         boolean sharp)

checkForOverlapping

protected int checkForOverlapping(int checkIt)
We have to make sure that if required note is already inside expanding notes array so we don't put it twice...