org.herac.tuxguitar.gui.editors.tab.layout

Class PageViewLayout


public class PageViewLayout
extends ViewLayout

Nested Class Summary

Nested classes/interfaces inherited from class org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout

ViewLayout.TrackPosition

Field Summary

Fields inherited from class org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout

AUTO_SPACING_ENABLED, DEFAULT_EFFECT_SPAN, DEFAULT_FIRST_TRACK_SPAN, DEFAULT_HORIZONTAL_SPAN, DEFAULT_MIN_TOP_SPAN, DEFAULT_MODE, DEFAULT_SCORE_LINE_SPAN, DEFAULT_SCORE_SPAN, DEFAULT_STRING_SPAN, DEFAULT_TRACK_SPAN, MIN_SCORE_TAB_SPAN, MODE_LINEAR, MODE_PAGE

Constructor Summary

PageViewLayout(Tablature tablature, SongManager songManager, boolean multitrack, boolean scoreEnabled, boolean tablatureEnabled)

Method Summary

boolean
followMeasure(MeasureCoords measure, boolean redraw)
int
getMaxWidth()
int
getMode()
org.herac.tuxguitar.gui.editors.tab.layout.PageViewLayout.TempLine
getTempLines(int posX, List measuresCoords, int fromIndex, TrackSpacing ts)
void
paintLine(SongTrackCoords trackCoords, org.herac.tuxguitar.gui.editors.tab.layout.PageViewLayout.TempLine line, GC gc, int fromX, int fromY, TrackSpacing ts, int trackIdx, Rectangle clientArea)
void
paintSong(GC gc, Rectangle clientArea, int fromX, int fromY)
void
paintTracks(List tracksCoords, GC gc, Rectangle clientArea, int fromX, int fromY)

Methods inherited from class org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout

addTrackPosition, checkTopSpan, clearTrackPositions, disposeHarmonicNotes, disposeLayout, disposeScoreNotes, disposeTracks, fireUpdate, followMeasure, getDefaultEffectSpan, getDefaultFirstTrackSpan, getDefaultTrackSpan, getHarmonicNote, getHeight, getMinScoreTabSpan, getMode, getNoteOrientation, getOrientation, getScoreLineSpan, getScoreNote, getScoreNoteWidth, getSongManager, getSpanForQuarter, getStringSpan, getTablature, getTrackCount, getTrackNumberAt, getTrackPositionAt, getWidth, isCaretVisible, isFirstMeasure, isLastMeasure, isMultiTrack, isMultitrack, isPlayModeEnabled, isScoreEnabled, isTablatureEnabled, paint, paintCacheMode, paintCaret, paintLines, paintMeasure, paintSong, paintTracks, setDefaultStyle, setGraceStyle, setHeight, setLineColor, setLyricStyle, setMultitrack, setNoteStyle, setOfflineEffectStyle, setPlayNoteColor, setScoreEnabled, setScoreNoteColor, setScoreSpan, setSongManager, setTabNoteColor, setTablature, setTablatureEnabled, setTimeSignatureStyle, setTupletoStyle, setWidth, updateLyrics, updateSong, updateTracks

Constructor Details

PageViewLayout

public PageViewLayout(Tablature tablature,
                      SongManager songManager,
                      boolean multitrack,
                      boolean scoreEnabled,
                      boolean tablatureEnabled)

Method Details

followMeasure

public boolean followMeasure(MeasureCoords measure,
                             boolean redraw)
Overrides:
followMeasure in interface ViewLayout

getMaxWidth

public int getMaxWidth()

getMode

public int getMode()
Overrides:
getMode in interface ViewLayout

getTempLines

public org.herac.tuxguitar.gui.editors.tab.layout.PageViewLayout.TempLine getTempLines(int posX,
                                                                                       List measuresCoords,
                                                                                       int fromIndex,
                                                                                       TrackSpacing ts)

paintLine

public void paintLine(SongTrackCoords trackCoords,
                      org.herac.tuxguitar.gui.editors.tab.layout.PageViewLayout.TempLine line,
                      GC gc,
                      int fromX,
                      int fromY,
                      TrackSpacing ts,
                      int trackIdx,
                      Rectangle clientArea)

paintSong

public void paintSong(GC gc,
                      Rectangle clientArea,
                      int fromX,
                      int fromY)
Overrides:
paintSong in interface ViewLayout

paintTracks

public void paintTracks(List tracksCoords,
                        GC gc,
                        Rectangle clientArea,
                        int fromX,
                        int fromY)
Overrides:
paintTracks in interface ViewLayout