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

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

public class ChordEditor
extends Composite


Field Summary
static int FRET_SPAN
           
static short MAX_FRET
           
static short MIN_FRET
           
static int STRING_SPAN
           
static short VIEWING_FRETS
           
 
Constructor Summary
ChordEditor(Composite parent, int style)
           
ChordEditor(Composite parent, int style, short maxStrings)
           
 
Method Summary
 void addValue(int value, int string)
           
 Chord getCurrentChord()
           
 short getFret()
           
 int getHeight()
           
 short getMaxStrings()
           
 int getValue(int string)
           
 int getWidth()
           
 void init(short maxStrings)
           
 boolean isEmpty()
           
 void redraw()
           
 void setFret(short fret)
           
 void setMaxStrings(short maxStrings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_SPAN

public static final int STRING_SPAN
See Also:
Constant Field Values

FRET_SPAN

public static final int FRET_SPAN
See Also:
Constant Field Values

MIN_FRET

public static final short MIN_FRET
See Also:
Constant Field Values

MAX_FRET

public static final short MAX_FRET
See Also:
Constant Field Values

VIEWING_FRETS

public static final short VIEWING_FRETS
See Also:
Constant Field Values
Constructor Detail

ChordEditor

public ChordEditor(Composite parent,
                   int style)

ChordEditor

public ChordEditor(Composite parent,
                   int style,
                   short maxStrings)
Method Detail

init

public void init(short maxStrings)

isEmpty

public boolean isEmpty()

getCurrentChord

public Chord getCurrentChord()

getValue

public int getValue(int string)

addValue

public void addValue(int value,
                     int string)

getFret

public short getFret()

setFret

public void setFret(short fret)

getMaxStrings

public short getMaxStrings()

setMaxStrings

public void setMaxStrings(short maxStrings)

getWidth

public int getWidth()

getHeight

public int getHeight()

redraw

public void redraw()