org.herac.tuxguitar.gui.tab

Class NoteCoords

Implemented Interfaces:
MeasureComponent

public class NoteCoords
extends java.lang.Object
implements MeasureComponent

Constructor Summary

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

Method Summary

void
calculateRealValue()
Component
getComponent()
Duration
getDuration()
Retorna la duracion de la nota
int
getLastFromX()
Retorna posicion del ultimo fromX
int
getLastFromY()
Retorna posicion del ultimo fromY
Note
getNote()
Retorna la nota de Referencia
int
getPointX()
int
getPointY()
int
getPosX()
Retorna posicion X dentro del compas
int
getPosY()
Retorna posicion Y dentro del compas
int
getRealValue()
ScoreBeatHelper
getScoreBeatHelper()
int
getScorePosY()
int
getSpan()
long
getStart()
Retorna el start de la nota
boolean
isAtSameLine(int y)
void
paint(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota
void
paintJoindeds(GC gc, int fromX, int fromY)
Pinta las uniones entre notas
void
paintScoreJoindeds(ViewLayout layout, GC gc, int fromX, int fromY, int key, int clef)
void
setDuration(Duration duration)
Asigna la duracion de la nota
void
setScoreBeatHelper(ScoreBeatHelper scoreBeatHelper)
void
setStart(long start)
Asigna el start de la nota
void
update(ViewLayout layout)
Actualiza los valores para dibujar

Constructor Details

NoteCoords

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

Method Details

calculateRealValue

public void calculateRealValue()

getComponent

public Component getComponent()
Specified by:
getComponent in interface MeasureComponent

getDuration

public Duration getDuration()
Retorna la duracion de la nota
Specified by:
getDuration in interface MeasureComponent

getLastFromX

public int getLastFromX()
Retorna posicion del ultimo fromX

getLastFromY

public int getLastFromY()
Retorna posicion del ultimo fromY

getNote

public Note getNote()
Retorna la nota de Referencia

getPointX

public int getPointX()
Specified by:
getPointX in interface MeasureComponent

getPointY

public int getPointY()
Specified by:
getPointY in interface MeasureComponent

getPosX

public int getPosX()
Retorna posicion X dentro del compas
Specified by:
getPosX in interface MeasureComponent

getPosY

public int getPosY()
Retorna posicion Y dentro del compas
Specified by:
getPosY in interface MeasureComponent

getRealValue

public int getRealValue()

getScoreBeatHelper

public ScoreBeatHelper getScoreBeatHelper()

getScorePosY

public int getScorePosY()

getSpan

public int getSpan()
Specified by:
getSpan in interface MeasureComponent

getStart

public long getStart()
Retorna el start de la nota
Specified by:
getStart in interface MeasureComponent

isAtSameLine

public boolean isAtSameLine(int y)

paint

public void paint(ViewLayout layout,
                  GC gc,
                  int fromX,
                  int fromY)
Pinta la nota
Specified by:
paint in interface MeasureComponent

paintJoindeds

public void paintJoindeds(GC gc,
                          int fromX,
                          int fromY)
Pinta las uniones entre notas

paintScoreJoindeds

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

setDuration

public void setDuration(Duration duration)
Asigna la duracion de la nota
Specified by:
setDuration in interface MeasureComponent

setScoreBeatHelper

public void setScoreBeatHelper(ScoreBeatHelper scoreBeatHelper)

setStart

public void setStart(long start)
Asigna el start de la nota
Specified by:
setStart in interface MeasureComponent

update

public void update(ViewLayout layout)
Actualiza los valores para dibujar
Specified by:
update in interface MeasureComponent