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

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.tab.Caret

public class Caret
extends java.lang.Object


Constructor Summary
Caret(Tablature tablature, SongManager songManager, SongCoords songCoords)
           
 
Method Summary
 void changeDuration(Duration duration)
           
 Duration getDuration()
           
 MeasureCoords getMeasureCoords()
           
 long getPosition()
           
 MeasureComponent getSelectedComponent()
           
 Note getSelectedNote()
           
 InstrumentString getSelectedString()
           
 SongCoords getSongCoords()
           
 SongTrackCoords getSongTrackCoords()
           
 int getStringNumber()
           
 int getVelocity()
           
 void goToTickPosition()
           
 boolean hasChanges()
           
 void moveDown()
           
 void moveLeft()
           
 boolean moveRight()
           
 void moveTo(SongTrackCoords selectedTrack, MeasureCoords selectedMeasure, MeasureComponent selectedComponent, int string)
           
 void moveUp()
           
 void paintCaret(ViewLayout layout, GC gc)
           
 void setChanges(boolean changes)
           
 void setSelectedDuration(Duration selectedDuration)
           
 void setStringNumber(int number)
           
 void setVelocity(int velocity)
           
 void update()
           
 void update(int trackNumber)
           
 void update(int trackNumber, long position, int string)
           
 void update(int trackNumber, long position, int string, int velocity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Caret

public Caret(Tablature tablature,
             SongManager songManager,
             SongCoords songCoords)
Method Detail

update

public void update()

update

public void update(int trackNumber)

update

public void update(int trackNumber,
                   long position,
                   int string)

update

public void update(int trackNumber,
                   long position,
                   int string,
                   int velocity)

moveTo

public void moveTo(SongTrackCoords selectedTrack,
                   MeasureCoords selectedMeasure,
                   MeasureComponent selectedComponent,
                   int string)

goToTickPosition

public void goToTickPosition()

paintCaret

public void paintCaret(ViewLayout layout,
                       GC gc)

moveRight

public boolean moveRight()

moveLeft

public void moveLeft()

moveUp

public void moveUp()

moveDown

public void moveDown()

setStringNumber

public void setStringNumber(int number)

getStringNumber

public int getStringNumber()

getPosition

public long getPosition()

getSongCoords

public SongCoords getSongCoords()

getMeasureCoords

public MeasureCoords getMeasureCoords()

getSongTrackCoords

public SongTrackCoords getSongTrackCoords()

getSelectedComponent

public MeasureComponent getSelectedComponent()

getDuration

public Duration getDuration()

setSelectedDuration

public void setSelectedDuration(Duration selectedDuration)

getSelectedString

public InstrumentString getSelectedString()

changeDuration

public void changeDuration(Duration duration)

hasChanges

public boolean hasChanges()

setChanges

public void setChanges(boolean changes)

getVelocity

public int getVelocity()

setVelocity

public void setVelocity(int velocity)

getSelectedNote

public Note getSelectedNote()