org.herac.tuxguitar.gui.editors.tab.layout
public abstract class ViewLayout extends Object
| Nested Class Summary | |
|---|---|
| class | ViewLayout.TrackPosition |
| Field Summary | |
|---|---|
| static boolean | AUTO_SPACING_ENABLED |
| static int | DEFAULT_EFFECT_SPAN |
| protected static int | DEFAULT_FIRST_TRACK_SPAN |
| protected static int | DEFAULT_HORIZONTAL_SPAN |
| protected static int | DEFAULT_MIN_TOP_SPAN |
| static int | DEFAULT_MODE |
| protected static int | DEFAULT_SCORE_LINE_SPAN |
| protected static int | DEFAULT_SCORE_SPAN |
| protected static int | DEFAULT_STRING_SPAN |
| protected static int | DEFAULT_TRACK_SPAN |
| protected static int | MIN_SCORE_TAB_SPAN |
| static int | MODE_LINEAR |
| static int | MODE_PAGE |
| Constructor Summary | |
|---|---|
| ViewLayout(Tablature tablature, SongManager songManager, boolean multitrack, boolean scoreEnabled, boolean tablatureEnabled) | |
| Method Summary | |
|---|---|
| protected void | addTrackPosition(int track, int posY, int height) |
| protected void | checkTopSpan(TrackSpacing ts) |
| protected void | clearTrackPositions() |
| protected void | disposeHarmonicNotes() |
| void | disposeLayout() |
| protected void | disposeScoreNotes() |
| protected void | disposeTracks() |
| void | fireUpdate(int measureNumber, boolean isNew) |
| abstract boolean | followMeasure(MeasureCoords measure, boolean redraw) |
| int | getDefaultEffectSpan() |
| int | getDefaultFirstTrackSpan() |
| int | getDefaultTrackSpan() |
| Image | getHarmonicNote(int value, boolean playMode) |
| int | getHeight() |
| int | getMinScoreTabSpan() |
| abstract int | getMode() |
| Rectangle | getNoteOrientation(GC gc, int x, int y, Note note) |
| Rectangle | getOrientation(GC gc, int x, int y, String s) |
| int | getScoreLineSpan() |
| Image | getScoreNote(int value, boolean playMode) |
| int | getScoreNoteWidth() |
| SongManager | getSongManager() |
| int | getSpanForQuarter(Duration duration)
Calcula el espacio minimo entre negras, dependiendo de la duracion de la nota |
| int | getStringSpan() |
| Tablature | getTablature() |
| protected int | getTrackCount() |
| int | getTrackNumberAt(List tracksCoords, int y) |
| ViewLayout.TrackPosition | getTrackPositionAt(int y) |
| int | getWidth() |
| boolean | isCaretVisible() |
| boolean | isFirstMeasure(Measure measure) |
| boolean | isLastMeasure(Measure measure) |
| boolean | isMultitrack() |
| protected boolean | isMultiTrack() |
| boolean | isPlayModeEnabled() |
| boolean | isScoreEnabled() |
| boolean | isTablatureEnabled() |
| void | paint(GC gc, Rectangle clientArea, int fromX, int fromY) |
| void | paintCacheMode(GC gc, MeasureCoords measure, List components, boolean paintMeasure, boolean playModeEnabled)
Pinta el compas y las notas que estan sonando |
| void | paintCaret(GC gc)
Pinta el caret |
| void | paintLines(SongTrackCoords trackCoords, TrackSpacing ts, GC gc, int x, int y, int width)
Pinta las lineas |
| void | paintMeasure(MeasureCoords measureCoords, GC gc, int fromX, int fromY, int span, Rectangle clientArea) |
| abstract void | paintSong(GC gc, Rectangle clientArea, int fromX, int fromY) |
| abstract void | paintTracks(List tracksCoords, GC gc, Rectangle clientArea, int fromX, int fromY) |
| void | setDefaultStyle(GC gc) |
| void | setGraceStyle(GC gc) |
| void | setHeight(int height) |
| void | setLineColor(GC gc) |
| void | setLyricStyle(GC gc) |
| void | setMultitrack(boolean multitrack) |
| void | setNoteStyle(GC gc) |
| void | setOfflineEffectStyle(GC gc) |
| void | setPlayNoteColor(GC gc) |
| void | setScoreEnabled(boolean scoreEnabled) |
| void | setScoreNoteColor(GC gc) |
| void | setScoreSpan(int scoreSpan) |
| void | setSongManager(SongManager songManager) |
| void | setTablature(Tablature tablature) |
| void | setTablatureEnabled(boolean tablatureEnabled) |
| void | setTabNoteColor(GC gc) |
| void | setTimeSignatureStyle(GC gc) |
| void | setTupletoStyle(GC gc) |
| void | setWidth(int width) |
| void | updateLyrics() |
| void | updateSong() |
| void | updateTracks() |