org.herac.tuxguitar.gui.editors.chord

Class ChordEditor

public class ChordEditor extends Composite

Field Summary
static intFRET_SPAN
static shortMAX_FRET
static shortMIN_FRET
static intSTRING_SPAN
static shortVIEWING_FRETS
Constructor Summary
ChordEditor(Composite parent, int style)
ChordEditor(Composite parent, int style, short maxStrings)
Method Summary
voidaddValue(int value, int string)
ChordgetCurrentChord()
shortgetFret()
intgetHeight()
shortgetMaxStrings()
intgetValue(int string)
intgetWidth()
voidinit(short maxStrings)
booleanisEmpty()
voidredraw()
voidsetFret(short fret)
voidsetMaxStrings(short maxStrings)

Field Detail

FRET_SPAN

public static final int FRET_SPAN

MAX_FRET

public static final short MAX_FRET

MIN_FRET

public static final short MIN_FRET

STRING_SPAN

public static final int STRING_SPAN

VIEWING_FRETS

public static final short VIEWING_FRETS

Constructor Detail

ChordEditor

public ChordEditor(Composite parent, int style)

ChordEditor

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

Method Detail

addValue

public void addValue(int value, int string)

getCurrentChord

public Chord getCurrentChord()

getFret

public short getFret()

getHeight

public int getHeight()

getMaxStrings

public short getMaxStrings()

getValue

public int getValue(int string)

getWidth

public int getWidth()

init

public void init(short maxStrings)

isEmpty

public boolean isEmpty()

redraw

public void redraw()

setFret

public void setFret(short fret)

setMaxStrings

public void setMaxStrings(short maxStrings)