org.herac.tuxguitar.gui.editors.chord
Class ChordEditor
java.lang.Object
Composite
org.herac.tuxguitar.gui.editors.chord.ChordEditor
public class ChordEditor
- extends Composite
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ChordEditor
public ChordEditor(Composite parent,
int style)
ChordEditor
public ChordEditor(ChordDialog dialog,
Composite parent,
int style,
short maxStrings)
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)