Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.herac.tuxguitar.gui.tab.NoteCoords
Constructor Summary | |
|
Method Summary | |
void | |
Component | |
Duration |
|
int |
|
int |
|
Note |
|
int | |
int | |
int |
|
int |
|
int | |
ScoreBeatHelper | |
int | |
int |
|
long |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public NoteCoords(Tablature tablature, SongTrackCoords trackCoords, MeasureCoords meassureCoords, Note note, int posX, int posY)
public void calculateRealValue()
public Duration getDuration()
Retorna la duracion de la nota
- Specified by:
- getDuration in interface MeasureComponent
public int getLastFromX()
Retorna posicion del ultimo fromX
public int getLastFromY()
Retorna posicion del ultimo fromY
public int getPosX()
Retorna posicion X dentro del compas
- Specified by:
- getPosX in interface MeasureComponent
public int getPosY()
Retorna posicion Y dentro del compas
- Specified by:
- getPosY in interface MeasureComponent
public int getRealValue()
public int getScorePosY()
public long getStart()
Retorna el start de la nota
- Specified by:
- getStart in interface MeasureComponent
public boolean isAtSameLine(int y)
public void paint(ViewLayout layout, GC gc, int fromX, int fromY)
Pinta la nota
- Specified by:
- paint in interface MeasureComponent
public void paintJoindeds(GC gc, int fromX, int fromY)
Pinta las uniones entre notas
public void paintScoreJoindeds(ViewLayout layout, GC gc, int fromX, int fromY, int key, int clef)
public void setDuration(Duration duration)
Asigna la duracion de la nota
- Specified by:
- setDuration in interface MeasureComponent
public void setStart(long start)
Asigna el start de la nota
- Specified by:
- setStart in interface MeasureComponent
public void update(ViewLayout layout)
Actualiza los valores para dibujar
- Specified by:
- update in interface MeasureComponent