calculateMeasureChanges
public void calculateMeasureChanges(ViewLayout layout)
Calcula si debe pintar el TimeSignature
calculateTabHeight
public void calculateTabHeight(ViewLayout layout)
Calcula el width del compas
calculateWidth
public void calculateWidth()
Calcula el width del compas
create
public void create(ViewLayout layout)
Crea los valores necesarios
getBeatLength
public long getBeatLength()
getCaret
public Caret getCaret()
Retorna el Caret
getClefSpan
public int getClefSpan()
getComponent
public MeasureComponent getComponent(long start)
Retorna Un Componente en la posicion start
getComponent
public MeasureComponent getComponent(long start,
int string)
Retorna el Componente en la posicion Start, y en la cuerda
getComponentAt
public MeasureComponent getComponentAt(int x)
Retorna el componente mas cercano a X
getComponentOrSilence
public MeasureComponent getComponentOrSilence(long start,
int string)
Retorna el Componente en la posicion Start, y en la cuerda
getComponents
public List getComponents()
getComponents
public List getComponents(long start)
Retorna Todos los Componentes en la posicion Start
getComponentsBeforeEnd
public List getComponentsBeforeEnd(long fromStart)
Retorna Todos los desde Start hasta el final del compas
getComponentsBetween
public List getComponentsBetween(long start)
Retorna Todos los Componentes en la posicion Start
getFirstComponent
public MeasureComponent getFirstComponent()
Retorna el Primer Componente
getFirstNoteSpan
public int getFirstNoteSpan()
getKeySignatureSpan
public int getKeySignatureSpan()
getLastComponent
public MeasureComponent getLastComponent()
Retorna el Ultimo Componente
getLastFromX
public int getLastFromX()
Retorna la ultima posicion X asignada
getLastFromY
public int getLastFromY()
Retorna la ultima posicion Y asignada
getMaxY
public int getMaxY()
getMeasure
public Measure getMeasure()
Retorna el Compas
getMinY
public int getMinY()
getNextNoteComponent
public MeasureComponent getNextNoteComponent(MeasureComponent component,
int string)
Retorna el Siguiente Componente en la cuerda. que sea de una nota
getPosX
public int getPosX()
Retorna la posicion X dentro del compas
getPosY
public int getPosY()
Retorna la posicion Y dentro del compas
getQuarterSpan
public int getQuarterSpan()
Retorna el span de negras
getScoreSpan
public int getScoreSpan()
getSpan
public int getSpan()
getStringAt
public InstrumentString getStringAt(int y)
Retorna la cuerda en la posicion y
getTabHeight
public int getTabHeight()
Retorna el alto de la tablatura
getTempoSpan
public int getTempoSpan()
getTimeSignatureSpan
public int getTimeSignatureSpan()
getTripletFeelSpan
public int getTripletFeelSpan()
getWidth
public int getWidth()
Retorna el ancho del Compas
hasCaret
public boolean hasCaret()
Retorna true si el Caret esta en este compas
hasTrack
public boolean hasTrack(int number)
isFirstMeasure
public boolean isFirstMeasure()
Retorna true si es el primer compas
isFirstOfLine
public boolean isFirstOfLine()
isLastMeasure
public boolean isLastMeasure()
Retorna true si es el ultimo compas
isOutOfBounds
public boolean isOutOfBounds()
isPlaying
public boolean isPlaying()
Retorna true si se esta reproduciendo y la posicion del player esta en este compas.
paintCaret
public void paintCaret(ViewLayout layout,
GC gc,
int fromX,
int fromY)
Pinta las notas
paintComponents
public void paintComponents(ViewLayout layout,
GC gc,
int fromX,
int fromY,
Rectangle clientArea)
Pinta las notas
paintMeasure
public void paintMeasure(ViewLayout layout,
GC gc,
int fromX,
int fromY,
Rectangle clientArea)
paintMeasure
public void paintMeasure(ViewLayout layout,
GC gc,
int fromX,
int fromY,
Rectangle clientArea,
int spans)
Pinta el compas
playBeat
public void playBeat(long start)
Reproduce las notas en el pulso
setCaret
public void setCaret(Caret caret)
Asigna el Caret a este compas
setFirstOfLine
public void setFirstOfLine(boolean firstOfLine)
setOutOfBounds
public void setOutOfBounds(boolean outOfBounds)
setPosX
public void setPosX(int posX)
Asigna la posicion X dentro del compas
setPosY
public void setPosY(int posY)
Asigna la posicion Y dentro del compas
setQuarterSpan
public void setQuarterSpan(int quarterSpan)
Asigna el span de negras
setScoreSpan
public void setScoreSpan(int scoreSpan)
setSpan
public void setSpan(int span)
update
public void update(ViewLayout layout)
Actualiza los valores para dibujar