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_SPACING
           
static short MAX_FRET
           
static short MIN_FRET
           
static int STRING_SPACING
           
 
Constructor Summary
ChordEditor(ChordDialog dialog, Composite parent, int style, short maxStrings)
           
ChordEditor(Composite parent, int style)
           
 
Method Summary
 void addValue(int value, int string)
           
protected  void checkPoint(int x, int y)
           
 TGChord getChord()
           
 Text getChordName()
           
protected  Composite getComposite()
           
 TGTrack getCurrentTrack()
           
 short getFret()
           
 int getHeight()
           
 short getMaxStrings()
           
 int getValue(int string)
           
 int getWidth()
           
 void init(short maxStrings)
           
 boolean isEmpty()
           
protected  void paintEditor(TGPainter painter)
           
 void previewChord(TGChord chord)
           
 void redraw()
           
 void setChord(TGChord chord)
           
 void setChordName(java.lang.String chordName)
           
 void setCurrentTrack(TGTrack track)
           
 void setFret(short fret)
           
protected  void setFret(short fret, boolean updateScroll, boolean recognize)
           
 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_SPACING

public static final int STRING_SPACING
See Also:
Constant Field Values

FRET_SPACING

public static final int FRET_SPACING
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
Constructor Detail

ChordEditor

public ChordEditor(Composite parent,
                   int style)

ChordEditor

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

init

public void init(short maxStrings)

paintEditor

protected void paintEditor(TGPainter painter)

checkPoint

protected void checkPoint(int x,
                          int y)

isEmpty

public boolean isEmpty()

getValue

public int getValue(int string)

addValue

public void addValue(int value,
                     int string)

getFret

public short getFret()

setFret

public void setFret(short fret)

setFret

protected void setFret(short fret,
                       boolean updateScroll,
                       boolean recognize)

getChord

public TGChord getChord()

setChord

public void setChord(TGChord chord)

getMaxStrings

public short getMaxStrings()

setMaxStrings

public void setMaxStrings(short maxStrings)

getWidth

public int getWidth()

getHeight

public int getHeight()

getComposite

protected Composite getComposite()

getChordName

public Text getChordName()

setChordName

public void setChordName(java.lang.String chordName)

redraw

public void redraw()

setCurrentTrack

public void setCurrentTrack(TGTrack track)

getCurrentTrack

public TGTrack getCurrentTrack()

previewChord

public void previewChord(TGChord chord)