org.herac.tuxguitar.gui.editors.tab

Class NoteCoords

Implemented Interfaces:
MeasureComponent

public class NoteCoords
extends java.lang.Object
implements MeasureComponent

Field Summary

static int
FLAT
static int[][]
KEY_SIGNATURES
static int
NATURAL
static boolean[]
NO_NATURAL_NOTES
Notas que tienen sostenido
static int[]
SCORE_FLAT_NOTES
static int[]
SCORE_SHARP_NOTES
static int
SHARP

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
MeasureTimeHelper
getMeasureTimeHelper()
Note
getNote()
Retorna la nota de Referencia
int
getPosX()
Retorna posicion X dentro del compas
int
getPosY()
Retorna posicion Y dentro del compas
int
getRealValue()
int
getScorePosY()
int
getSpan()
long
getStart()
Retorna el start de la nota
boolean
isPlaying()
void
paint(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota
void
paintScoreJoindeds(ViewLayout layout, GC gc, int fromX, int fromY, int key, int clef)
void
paintTabJoindeds(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta las uniones entre notas
void
paintTabNote(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota en la tablatura
void
setDuration(Duration duration)
Asigna la duracion de la nota
void
setMeasureTimeHelper(MeasureTimeHelper measureTimeHelper)
void
setStart(long start)
Asigna el start de la nota
void
update(ViewLayout layout)
Actualiza los valores para dibujar

Field Details

FLAT

public static final int FLAT
Field Value:
2

KEY_SIGNATURES

public static final int[][] KEY_SIGNATURES

NATURAL

public static final int NATURAL
Field Value:
0

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
Field Value:
1

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

getMeasureTimeHelper

public MeasureTimeHelper getMeasureTimeHelper()

getNote

public Note getNote()
Retorna la nota de Referencia

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

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

isPlaying

public boolean isPlaying()
Specified by:
isPlaying in interface MeasureComponent

paint

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

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
Specified by:
setDuration in interface MeasureComponent

setMeasureTimeHelper

public void setMeasureTimeHelper(MeasureTimeHelper measureTimeHelper)

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