org.herac.tuxguitar.gui.editors.tab

Class NoteCoords

public class NoteCoords extends Object implements MeasureComponent

Field Summary
static intFLAT
static int[][]KEY_SIGNATURES
static intNATURAL
static boolean[]NO_NATURAL_NOTES
Notas que tienen sostenido
static int[]SCORE_FLAT_NOTES
static int[]SCORE_SHARP_NOTES
static intSHARP
Constructor Summary
NoteCoords(Tablature tablature, SongTrackCoords trackCoords, MeasureCoords meassureCoords, Note note, int posX, int posY)
Method Summary
voidcalculateRealValue()
ComponentgetComponent()
DurationgetDuration()
Retorna la duracion de la nota
MeasureTimeHelpergetMeasureTimeHelper()
NotegetNote()
Retorna la nota de Referencia
intgetPosX()
Retorna posicion X dentro del compas
intgetPosY()
Retorna posicion Y dentro del compas
intgetRealValue()
intgetScorePosY()
intgetSpan()
longgetStart()
Retorna el start de la nota
booleanisPlaying()
voidpaint(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota
voidpaintScoreJoindeds(ViewLayout layout, GC gc, int fromX, int fromY, int key, int clef)
voidpaintTabJoindeds(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta las uniones entre notas
voidpaintTabNote(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota en la tablatura
voidsetDuration(Duration duration)
Asigna la duracion de la nota
voidsetMeasureTimeHelper(MeasureTimeHelper measureTimeHelper)
voidsetStart(long start)
Asigna el start de la nota
voidupdate(ViewLayout layout)
Actualiza los valores para dibujar

Field Detail

FLAT

public static final int FLAT

KEY_SIGNATURES

public static final int[][] KEY_SIGNATURES

NATURAL

public static final int NATURAL

NO_NATURAL_NOTES

public static final boolean[] NO_NATURAL_NOTES
Notas que tienen sostenido

SCORE_FLAT_NOTES

public static final int[] SCORE_FLAT_NOTES

SCORE_SHARP_NOTES

public static final int[] SCORE_SHARP_NOTES

SHARP

public static final int SHARP

Constructor Detail

NoteCoords

public NoteCoords(Tablature tablature, SongTrackCoords trackCoords, MeasureCoords meassureCoords, Note note, int posX, int posY)

Method Detail

calculateRealValue

public void calculateRealValue()

getComponent

public Component getComponent()

getDuration

public Duration getDuration()
Retorna la duracion de la nota

getMeasureTimeHelper

public MeasureTimeHelper getMeasureTimeHelper()

getNote

public Note getNote()
Retorna la nota de Referencia

getPosX

public int getPosX()
Retorna posicion X dentro del compas

getPosY

public int getPosY()
Retorna posicion Y dentro del compas

getRealValue

public int getRealValue()

getScorePosY

public int getScorePosY()

getSpan

public int getSpan()

getStart

public long getStart()
Retorna el start de la nota

isPlaying

public boolean isPlaying()

paint

public void paint(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota

paintScoreJoindeds

public void paintScoreJoindeds(ViewLayout layout, GC gc, int fromX, int fromY, int key, int clef)

paintTabJoindeds

public void paintTabJoindeds(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta las uniones entre notas

paintTabNote

public void paintTabNote(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota en la tablatura

setDuration

public void setDuration(Duration duration)
Asigna la duracion de la nota

setMeasureTimeHelper

public void setMeasureTimeHelper(MeasureTimeHelper measureTimeHelper)

setStart

public void setStart(long start)
Asigna el start de la nota

update

public void update(ViewLayout layout)
Actualiza los valores para dibujar