org.herac.tuxguitar.gui.editors.tab

Class 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)

Constructor Details

Caret

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

Method Details

changeDuration

public void changeDuration(Duration duration)

getDuration

public Duration getDuration()

getMeasureCoords

public MeasureCoords getMeasureCoords()

getPosition

public long getPosition()

getSelectedComponent

public MeasureComponent getSelectedComponent()

getSelectedNote

public Note getSelectedNote()

getSelectedString

public InstrumentString getSelectedString()

getSongCoords

public SongCoords getSongCoords()

getSongTrackCoords

public SongTrackCoords getSongTrackCoords()

getStringNumber

public int getStringNumber()

getVelocity

public int getVelocity()

goToTickPosition

public void goToTickPosition()

hasChanges

public boolean hasChanges()

moveDown

public void moveDown()

moveLeft

public void moveLeft()

moveRight

public boolean moveRight()

moveTo

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

moveUp

public void moveUp()

paintCaret

public void paintCaret(ViewLayout layout,
                       GC gc)

setChanges

public void setChanges(boolean changes)

setSelectedDuration

public void setSelectedDuration(Duration selectedDuration)

setStringNumber

public void setStringNumber(int number)

setVelocity

public void setVelocity(int velocity)

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)