org.herac.tuxguitar.gui.editors.tab
Class NoteCoords

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.tab.NoteCoords
All 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NATURAL

public static final int NATURAL
See Also:
Constant Field Values

SHARP

public static final int SHARP
See Also:
Constant Field Values

FLAT

public static final int FLAT
See Also:
Constant Field Values

KEY_SIGNATURES

public static final int[][] KEY_SIGNATURES

SCORE_SHARP_NOTES

public static final int[] SCORE_SHARP_NOTES

SCORE_FLAT_NOTES

public static final int[] SCORE_FLAT_NOTES

NO_NATURAL_NOTES

public static final boolean[] NO_NATURAL_NOTES
Notas que tienen sostenido

Constructor Detail

NoteCoords

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

update

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

Specified by:
update in interface MeasureComponent

calculateRealValue

public void calculateRealValue()

paint

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

Specified by:
paint in interface MeasureComponent

paintTabNote

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


paintTabJoindeds

public void paintTabJoindeds(ViewLayout layout,
                             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)

isPlaying

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

setStart

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

Specified by:
setStart in interface MeasureComponent

getStart

public long getStart()
Retorna el start de la nota

Specified by:
getStart in interface MeasureComponent

setDuration

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

Specified by:
setDuration in interface MeasureComponent

getDuration

public Duration getDuration()
Retorna la duracion de la nota

Specified by:
getDuration in interface MeasureComponent

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

getSpan

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

getRealValue

public int getRealValue()

getMeasureTimeHelper

public MeasureTimeHelper getMeasureTimeHelper()

setMeasureTimeHelper

public void setMeasureTimeHelper(MeasureTimeHelper measureTimeHelper)

getComponent

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

getScorePosY

public int getScorePosY()