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

Class LinearViewLayout


public class LinearViewLayout
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

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

Method Summary

boolean
followMeasure(MeasureCoords measure, boolean redraw)
int
getMode()
void
paintMeasures(SongTrackCoords trackCoords, List measuresCoords, GC gc, int fromX, int fromY, TrackSpacing ts, 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

LinearViewLayout

public LinearViewLayout(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

getMode

public int getMode()
Overrides:
getMode in interface ViewLayout

paintMeasures

public void paintMeasures(SongTrackCoords trackCoords,
                          List measuresCoords,
                          GC gc,
                          int fromX,
                          int fromY,
                          TrackSpacing ts,
                          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