org.herac.tuxguitar.gui.editors.tab
Class TGChordImpl

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGChord
      extended by org.herac.tuxguitar.gui.editors.tab.TGChordImpl

public class TGChordImpl
extends TGChord


Field Summary
static int MAX_FRETS
           
 
Constructor Summary
TGChordImpl(int length)
           
 
Method Summary
 void calculateFirstFret()
           
 void dispose()
           
 Color getBackgroundColor()
           
 TGBeatImpl getBeatImpl()
           
 Color getColor()
           
 Font getFirstFretFont()
           
 int getFirstFretSpacing()
           
 Font getFont()
           
 Color getForegroundColor()
           
 int getFretSpacing()
           
 int getHeight()
           
 Color getNoteColor()
           
 int getNoteSize()
           
 int getPaintPosition(int index)
           
 int getPosX()
           
 int getPosY()
           
 int getStringSpacing()
           
 Color getTonicColor()
           
 int getWidth()
           
 boolean isDisposed()
           
 boolean isEditing()
           
 void paint(TGPainter painter, int fromX, int fromY)
           
 void paint(ViewLayout layout, TGPainter painter, int fromX, int fromY)
           
protected  void paintDiagram(TGPainter painter, int fromX, int fromY)
           
 void setBackgroundColor(Color backgroundColor)
           
 void setColor(Color color)
           
 void setEditing(boolean editing)
           
 void setFirstFretFont(Font firstFretFont)
           
 void setFirstFretSpacing(int firstFretSpacing)
           
 void setFont(Font font)
           
 void setForegroundColor(Color foregroundColor)
           
 void setFretSpacing(int fretSpacing)
           
 void setNoteColor(Color noteColor)
           
 void setNoteSize(int noteSize)
           
 void setPosX(int posX)
           
 void setPosY(int posY)
           
 void setStringSpacing(int stringSpacing)
           
 void setStyle(int style)
           
 void setTonic(int tonic)
           
 void setTonicColor(Color tonicColor)
           
 void update(TGPainter painter, boolean makeBuffer)
           
protected  void updateDiagram(Device device)
           
protected  void updateName(TGPainter painter)
           
 
Methods inherited from class org.herac.tuxguitar.song.models.TGChord
addFretValue, clone, countNotes, countStrings, getBeat, getFirstFret, getFretValue, getName, getStrings, setBeat, setFirstFret, setName, setStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_FRETS

public static final int MAX_FRETS
See Also:
Constant Field Values
Constructor Detail

TGChordImpl

public TGChordImpl(int length)
Method Detail

isEditing

public boolean isEditing()

setEditing

public void setEditing(boolean editing)

setPosX

public void setPosX(int posX)

setPosY

public void setPosY(int posY)

getPosY

public int getPosY()

getWidth

public int getWidth()

getHeight

public int getHeight()

setStyle

public void setStyle(int style)

setTonic

public void setTonic(int tonic)

getForegroundColor

public Color getForegroundColor()

setForegroundColor

public void setForegroundColor(Color foregroundColor)

getBackgroundColor

public Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

getColor

public Color getColor()

setColor

public void setColor(Color color)

getNoteColor

public Color getNoteColor()

setNoteColor

public void setNoteColor(Color noteColor)

getTonicColor

public Color getTonicColor()

setTonicColor

public void setTonicColor(Color tonicColor)

getFirstFretSpacing

public int getFirstFretSpacing()

setFirstFretSpacing

public void setFirstFretSpacing(int firstFretSpacing)

getFretSpacing

public int getFretSpacing()

setFretSpacing

public void setFretSpacing(int fretSpacing)

getStringSpacing

public int getStringSpacing()

setStringSpacing

public void setStringSpacing(int stringSpacing)

getNoteSize

public int getNoteSize()

setNoteSize

public void setNoteSize(int noteSize)

getFont

public Font getFont()

setFont

public void setFont(Font font)

getFirstFretFont

public Font getFirstFretFont()

setFirstFretFont

public void setFirstFretFont(Font firstFretFont)

paint

public void paint(ViewLayout layout,
                  TGPainter painter,
                  int fromX,
                  int fromY)

paint

public void paint(TGPainter painter,
                  int fromX,
                  int fromY)

update

public void update(TGPainter painter,
                   boolean makeBuffer)

updateName

protected void updateName(TGPainter painter)

updateDiagram

protected void updateDiagram(Device device)

paintDiagram

protected void paintDiagram(TGPainter painter,
                            int fromX,
                            int fromY)

calculateFirstFret

public void calculateFirstFret()

isDisposed

public boolean isDisposed()

dispose

public void dispose()

getPosX

public int getPosX()

getPaintPosition

public int getPaintPosition(int index)

getBeatImpl

public TGBeatImpl getBeatImpl()