|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.herac.tuxguitar.song.models.TGMeasure
org.herac.tuxguitar.gui.editors.tab.TGMeasureImpl
public class TGMeasureImpl
Field Summary | |
---|---|
static int[] |
ACCIDENTAL_FLAT_NOTES
|
static boolean[] |
ACCIDENTAL_NOTES
|
static int[] |
ACCIDENTAL_SHARP_NOTES
|
static int |
FLAT
|
static int[][] |
KEY_SIGNATURES
|
static int |
NATURAL
|
static int[] |
SCORE_KEY_FLAT_POSITIONS
|
static int[] |
SCORE_KEY_OFFSETS
|
static int[] |
SCORE_KEY_SHARP_POSITIONS
|
static int |
SHARP
|
Fields inherited from class org.herac.tuxguitar.song.models.TGMeasure |
---|
CLEF_ALTO, CLEF_BASS, CLEF_TENOR, CLEF_TREBLE, DEFAULT_CLEF, DEFAULT_KEY_SIGNATURE |
Constructor Summary | |
---|---|
TGMeasureImpl(TGMeasureHeader header)
|
Method Summary | |
---|---|
void |
calculateMeasureChanges(ViewLayout layout)
Calcula si debe pintar el TimeSignature |
void |
calculateWidth(ViewLayout layout)
|
boolean |
canJoin(TGSongManager manager,
TGVoiceImpl b1,
TGVoiceImpl b2)
|
void |
create(ViewLayout layout)
Crea los valores necesarios |
void |
dispose()
|
void |
disposeMarkerColor()
|
int |
getBeatSpacing(TGBeat beat)
|
TGMeasureBuffer |
getBuffer()
|
int |
getClefSpacing(ViewLayout layout)
|
long |
getDivisionLength()
|
int |
getFirstNoteSpacing(ViewLayout layout)
|
TGMeasureHeaderImpl |
getHeaderImpl()
|
int |
getKeySignatureSpacing(ViewLayout layout)
|
int |
getLyricBeatIndex()
|
Color |
getMarkerColor()
|
int |
getMaxY()
|
int |
getMinY()
|
int |
getNoteAccidental(int noteValue)
|
int |
getNotEmptyBeats()
|
int |
getNotEmptyVoices()
|
int |
getPosX()
Retorna la posicion X dentro del compas |
int |
getPosY()
Retorna la posicion Y dentro del compas |
int |
getSpacing()
|
TGTrackImpl |
getTrackImpl()
|
TrackSpacing |
getTs()
|
int |
getWidth(ViewLayout layout)
Retorna el ancho del Compas |
boolean |
hasTrack(int number)
|
boolean |
isBufferCreated()
|
boolean |
isDisposed()
|
boolean |
isFirstOfLine()
|
boolean |
isOutOfBounds()
|
boolean |
isPaintClef()
|
boolean |
isPaintKeySignature()
|
boolean |
isPlaying(ViewLayout layout)
Retorna true si se esta reproduciendo y la posicion del player esta en este compas. |
void |
paintComponents(ViewLayout layout,
TGPainter painter,
int fromX,
int fromY)
Pinta las notas |
void |
paintMeasure(ViewLayout layout,
TGPainter painter)
|
void |
paintRepeatEnding(ViewLayout layout,
TGPainter painter)
|
void |
registerSpacing(ViewLayout layout,
TrackSpacing ts)
|
void |
setBufferCreated(boolean bufferCreated)
|
void |
setFirstOfLine(boolean firstOfLine)
|
void |
setLyricBeatIndex(int lyricBeatIndex)
|
void |
setOutOfBounds(boolean outOfBounds)
|
void |
setPosX(int posX)
Asigna la posicion X dentro del compas |
void |
setPosY(int posY)
Asigna la posicion Y dentro del compas |
void |
setSpacing(int spacing)
|
void |
setTs(TrackSpacing ts)
|
void |
update(ViewLayout layout)
Actualiza los valores para dibujar |
Methods inherited from class org.herac.tuxguitar.song.models.TGMeasure |
---|
addBeat, clone, countBeats, getBeat, getBeats, getClef, getHeader, getKeySignature, getLength, getMarker, getNumber, getRepeatClose, getStart, getTempo, getTimeSignature, getTrack, getTripletFeel, hasMarker, isRepeatOpen, makeEqual, moveBeat, removeBeat, setClef, setHeader, setKeySignature, setTrack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NATURAL
public static final int SHARP
public static final int FLAT
public static final int[][] KEY_SIGNATURES
public static final int[] ACCIDENTAL_SHARP_NOTES
public static final int[] ACCIDENTAL_FLAT_NOTES
public static final boolean[] ACCIDENTAL_NOTES
public static final int[] SCORE_KEY_OFFSETS
public static final int[] SCORE_KEY_SHARP_POSITIONS
public static final int[] SCORE_KEY_FLAT_POSITIONS
Constructor Detail |
---|
public TGMeasureImpl(TGMeasureHeader header)
Method Detail |
---|
public void create(ViewLayout layout)
public void update(ViewLayout layout)
public void calculateWidth(ViewLayout layout)
public boolean canJoin(TGSongManager manager, TGVoiceImpl b1, TGVoiceImpl b2)
public void calculateMeasureChanges(ViewLayout layout)
public int getNoteAccidental(int noteValue)
public void registerSpacing(ViewLayout layout, TrackSpacing ts)
public void paintMeasure(ViewLayout layout, TGPainter painter)
public void paintRepeatEnding(ViewLayout layout, TGPainter painter)
public void paintComponents(ViewLayout layout, TGPainter painter, int fromX, int fromY)
public boolean isPlaying(ViewLayout layout)
public int getBeatSpacing(TGBeat beat)
public boolean hasTrack(int number)
public int getWidth(ViewLayout layout)
public int getFirstNoteSpacing(ViewLayout layout)
public int getClefSpacing(ViewLayout layout)
public int getKeySignatureSpacing(ViewLayout layout)
public long getDivisionLength()
public boolean isBufferCreated()
public void setBufferCreated(boolean bufferCreated)
public int getPosX()
public void setPosX(int posX)
public int getPosY()
public void setPosY(int posY)
public TGMeasureHeaderImpl getHeaderImpl()
public int getSpacing()
public void setSpacing(int spacing)
public boolean isOutOfBounds()
public void setOutOfBounds(boolean outOfBounds)
public boolean isFirstOfLine()
public void setFirstOfLine(boolean firstOfLine)
public TGTrackImpl getTrackImpl()
public TrackSpacing getTs()
public void setTs(TrackSpacing ts)
public int getMaxY()
public int getMinY()
public int getNotEmptyBeats()
public int getNotEmptyVoices()
public int getLyricBeatIndex()
public void setLyricBeatIndex(int lyricBeatIndex)
public boolean isPaintClef()
public boolean isPaintKeySignature()
public boolean isDisposed()
public TGMeasureBuffer getBuffer()
public Color getMarkerColor()
public void disposeMarkerColor()
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |