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

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGBeat
      extended by org.herac.tuxguitar.gui.editors.tab.TGBeatImpl

public class TGBeatImpl
extends TGBeat


Field Summary
static int JOINED_TYPE_LEFT
          Union a la izquierda
static int JOINED_TYPE_NONE_LEFT
          desviacion a la izquierda
static int JOINED_TYPE_NONE_RIGHT
          desviacion a la derecha
static int JOINED_TYPE_RIGHT
          Union a la derecha
 
Fields inherited from class org.herac.tuxguitar.song.models.TGBeat
MAX_VOICES
 
Constructor Summary
TGBeatImpl(TGFactory factory)
           
 
Method Summary
 void check(TGNoteImpl note)
           
 void dispose()
           
 TGBeatGroup getBeatGroup()
           
 TGBeatImpl getJoin1()
           
 TGBeatImpl getJoin2()
           
 int getJoinedType()
           
 TGNoteImpl getMaxNote()
           
 TGMeasureImpl getMeasureImpl()
           
 int getMinimumWidth()
           
 TGNoteImpl getMinNote()
           
 TGBeatImpl getNextBeat()
           
 int getPaintPosition(int index)
           
 int getPosX()
           
 TGBeatImpl getPreviousBeat()
           
 int getSpacing()
           
 boolean[] getUsedStrings()
           
 TGVoiceImpl getVoiceImpl(int index)
           
 boolean isJoinedGreaterThanQuarter()
           
 boolean isPlaying(ViewLayout layout)
           
 void paint(ViewLayout layout, TGPainter painter, int fromX, int fromY)
           
 void paintExtraLines(TGPainter painter, ViewLayout layout, int fromX, int fromY)
           
 void paintStroke(ViewLayout layout, TGPainter painter, int fromX, int fromY)
           
 void play()
           
 void removeChord()
           
 void reset()
           
 void setBeatGroup(TGBeatGroup group)
           
 void setJoin1(TGBeatImpl join1)
           
 void setJoin2(TGBeatImpl join2)
           
 void setJoinedGreaterThanQuarter(boolean joinedGreaterThanQuarter)
           
 void setJoinedType(int joinedType)
           
 void setNextBeat(TGBeatImpl next)
           
 void setPosX(int posX)
           
 void setPreviousBeat(TGBeatImpl previous)
           
 void setWidth(int width)
           
 
Methods inherited from class org.herac.tuxguitar.song.models.TGBeat
clone, countVoices, getChord, getMeasure, getStart, getStroke, getText, getVoice, isChordBeat, isRestBeat, isTextBeat, removeText, setChord, setMeasure, setStart, setText, setVoice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOINED_TYPE_NONE_LEFT

public static final int JOINED_TYPE_NONE_LEFT
desviacion a la izquierda

See Also:
Constant Field Values

JOINED_TYPE_NONE_RIGHT

public static final int JOINED_TYPE_NONE_RIGHT
desviacion a la derecha

See Also:
Constant Field Values

JOINED_TYPE_LEFT

public static final int JOINED_TYPE_LEFT
Union a la izquierda

See Also:
Constant Field Values

JOINED_TYPE_RIGHT

public static final int JOINED_TYPE_RIGHT
Union a la derecha

See Also:
Constant Field Values
Constructor Detail

TGBeatImpl

public TGBeatImpl(TGFactory factory)
Method Detail

getPosX

public int getPosX()

setPosX

public void setPosX(int posX)

getMinimumWidth

public int getMinimumWidth()

setWidth

public void setWidth(int width)

getMinNote

public TGNoteImpl getMinNote()

getMaxNote

public TGNoteImpl getMaxNote()

getMeasureImpl

public TGMeasureImpl getMeasureImpl()

getUsedStrings

public boolean[] getUsedStrings()

getJoin1

public TGBeatImpl getJoin1()

setJoin1

public void setJoin1(TGBeatImpl join1)

getJoin2

public TGBeatImpl getJoin2()

setJoin2

public void setJoin2(TGBeatImpl join2)

isJoinedGreaterThanQuarter

public boolean isJoinedGreaterThanQuarter()

setJoinedGreaterThanQuarter

public void setJoinedGreaterThanQuarter(boolean joinedGreaterThanQuarter)

getJoinedType

public int getJoinedType()

setJoinedType

public void setJoinedType(int joinedType)

getPreviousBeat

public TGBeatImpl getPreviousBeat()

setPreviousBeat

public void setPreviousBeat(TGBeatImpl previous)

getNextBeat

public TGBeatImpl getNextBeat()

setNextBeat

public void setNextBeat(TGBeatImpl next)

getBeatGroup

public TGBeatGroup getBeatGroup()

setBeatGroup

public void setBeatGroup(TGBeatGroup group)

getSpacing

public int getSpacing()

isPlaying

public boolean isPlaying(ViewLayout layout)

getVoiceImpl

public TGVoiceImpl getVoiceImpl(int index)

reset

public void reset()

check

public void check(TGNoteImpl note)

play

public void play()

paint

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

paintExtraLines

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

paintStroke

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

getPaintPosition

public int getPaintPosition(int index)

removeChord

public void removeChord()
Overrides:
removeChord in class TGBeat

dispose

public void dispose()