org.herac.tuxguitar.gui.editors.tab
public class MeasureCoords extends Object
Nested Class Summary | |
---|---|
class | MeasureCoords.BeatPosition
Implementacion de Component para crear un pulso de lyric
|
Field Summary | |
---|---|
static int | DEFAULT_CLEF_SPAN
Espacio por defecto de la clave |
static int | DEFAULT_QUARTER_SPAN
Espacio por defecto entre negra y negra |
static int[] | SCORE_KEY_OFFSETS |
Constructor Summary | |
---|---|
MeasureCoords(SongManager songManager, Tablature tablature, MeasureHeaderGui header, Measure measure, SongTrackCoords trackCoords) |
Method Summary | |
---|---|
boolean | areInSameBeat(MeasureComponent arg0, MeasureComponent arg1) |
void | calculateMeasureChanges(ViewLayout layout)
Calcula si debe pintar el TimeSignature |
void | create(ViewLayout layout)
Crea los valores necesarios |
void | dispose() |
long | getBeatLength() |
List | getBeatPositions() |
MeasureComponent | getComponent(long start)
Retorna Un Componente en la posicion start |
MeasureComponent | getComponent(long start, int string)
Retorna el Componente en la posicion Start, y en la cuerda |
MeasureComponent | getComponentAt(int x)
Retorna el componente mas cercano a X |
MeasureComponent | getComponentOrSilence(long start, int string)
Retorna el Componente en la posicion Start, y en la cuerda |
List | getComponents(long start)
Retorna Todos los Componentes en la posicion Start |
List | getComponents() |
List | getComponentsBeforeEnd(long fromStart)
Retorna Todos los desde Start hasta el final del compas |
List | getComponentsBetween(long start)
Retorna Todos los Componentes en la posicion Start |
MeasureComponent | getFirstComponent()
Retorna el Primer Componente |
int | getFirstNoteSpan() |
MeasureComponent | getLastComponent()
Retorna el Ultimo Componente |
int | getLyricBeatIndex() |
int | getMaxY() |
Measure | getMeasure()
Retorna el Compas |
int | getMinY() |
MeasureComponent | getNextComponent(MeasureComponent component)
Retorna el Siguiente Componente |
MeasureComponent | getNextNoteComponent(MeasureComponent component, int string)
Retorna el Siguiente Componente en la cuerda. que sea de una nota |
MeasureComponent | getNextNoteComponent(MeasureComponent component)
Retorna el Siguiente Componente que sea de una nota |
MeasureComponent | getNextSilenceComponent(MeasureComponent component)
Retorna el Siguiente Componente que sea de un silencio |
int | getPosX()
Retorna la posicion X dentro del compas |
int | getPosY()
Retorna la posicion Y dentro del compas |
MeasureComponent | getPreviousComponent(MeasureComponent component)
Retorna el Componente Anterior |
int | getQuarterSpan()
Retorna el span de negras |
int | getSpan() |
int | getSpanForComponent(Component component) |
InstrumentString | getStringAt(int y)
Retorna la cuerda en la posicion y |
SongTrackCoords | getTrackCoords() |
TrackSpacing | getTs() |
int | getWidth()
Retorna el ancho del Compas |
boolean | hasTrack(int number) |
boolean | isCacheEnabled() |
boolean | isDisposed() |
boolean | isFirstOfLine() |
boolean | isOutOfBounds() |
boolean | isPlaying()
Retorna true si se esta reproduciendo y la posicion del player esta en este compas. |
void | paintComponents(ViewLayout layout, GC gc, Rectangle clientArea)
Pinta las notas |
void | paintMeasure(ViewLayout layout, GC eventGC, Rectangle clientArea) |
void | playBeat(long start)
Reproduce las notas en el pulso |
void | registerEffects(TrackSpacing ts) |
void | setCacheEnabled(boolean cacheEnabled) |
void | setFirstOfLine(boolean firstOfLine) |
void | setLyricBeatIndex(int lyricBeatIndex) |
void | setOutOfBounds(boolean outOfBounds) |
void | setPosX(int posX)
Asigna la posicion X dentro del compas |
void | setPosY(int posY)
Asigna la posicion Y dentro del compas |
void | setQuarterSpan(int quarterSpan)
Asigna el span de negras |
void | setSpan(int span) |
void | setTs(TrackSpacing ts) |
void | update(ViewLayout layout)
Actualiza los valores para dibujar |