org.herac.tuxguitar.gui.editors.tab
Class TGMeasureHeaderImpl

java.lang.Object
  extended by org.herac.tuxguitar.song.models.TGMeasureHeader
      extended by org.herac.tuxguitar.gui.editors.tab.TGMeasureHeaderImpl

public class TGMeasureHeaderImpl
extends TGMeasureHeader


Field Summary
 
Fields inherited from class org.herac.tuxguitar.song.models.TGMeasureHeader
TRIPLET_FEEL_EIGHTH, TRIPLET_FEEL_NONE, TRIPLET_FEEL_SIXTEENTH
 
Constructor Summary
TGMeasureHeaderImpl(TGFactory factory)
           
 
Method Summary
 void calculateMeasureChanges(ViewLayout layout)
           
 int getClefSpacing(ViewLayout layout, TGMeasureImpl measure)
           
 int getFirstNoteSpacing(ViewLayout layout, TGMeasureImpl measure)
           
 int getKeySignatureSpacing(ViewLayout layout, TGMeasureImpl measure)
           
 int getLeftSpacing(ViewLayout layout)
           
 int getMaxQuarterSpacing()
           
 int getMaxWidth()
           
 int getRightSpacing(ViewLayout layout)
           
 int getTempoSpacing(ViewLayout layout)
           
 int getTimeSignatureSpacing(ViewLayout layout)
           
 int getTripletFeelSpacing(ViewLayout layout)
           
 void notifyClefSpacing(int spacing)
           
 void notifyKeySignatureSpacing(int spacing)
           
 void notifyQuarterSpacing(int spacing)
           
 void notifyWidth(int width)
           
 void reset()
           
 boolean shouldPaintTempo()
           
 boolean shouldPaintTimeSignature()
           
 boolean shouldPaintTripletFeel()
           
 void update(ViewLayout layout, int index)
           
 
Methods inherited from class org.herac.tuxguitar.song.models.TGMeasureHeader
clone, getLength, getMarker, getNumber, getRepeatAlternative, getRepeatClose, getSong, getStart, getTempo, getTimeSignature, getTripletFeel, hasMarker, isRepeatOpen, makeEqual, setMarker, setNumber, setRepeatAlternative, setRepeatClose, setRepeatOpen, setSong, setStart, setTempo, setTimeSignature, setTripletFeel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGMeasureHeaderImpl

public TGMeasureHeaderImpl(TGFactory factory)
Method Detail

reset

public void reset()

update

public void update(ViewLayout layout,
                   int index)

calculateMeasureChanges

public void calculateMeasureChanges(ViewLayout layout)

shouldPaintTempo

public boolean shouldPaintTempo()

shouldPaintTripletFeel

public boolean shouldPaintTripletFeel()

shouldPaintTimeSignature

public boolean shouldPaintTimeSignature()

getMaxQuarterSpacing

public int getMaxQuarterSpacing()

notifyQuarterSpacing

public void notifyQuarterSpacing(int spacing)

getClefSpacing

public int getClefSpacing(ViewLayout layout,
                          TGMeasureImpl measure)

getKeySignatureSpacing

public int getKeySignatureSpacing(ViewLayout layout,
                                  TGMeasureImpl measure)

getTempoSpacing

public int getTempoSpacing(ViewLayout layout)

getTripletFeelSpacing

public int getTripletFeelSpacing(ViewLayout layout)

getTimeSignatureSpacing

public int getTimeSignatureSpacing(ViewLayout layout)

getLeftSpacing

public int getLeftSpacing(ViewLayout layout)

getRightSpacing

public int getRightSpacing(ViewLayout layout)

getFirstNoteSpacing

public int getFirstNoteSpacing(ViewLayout layout,
                               TGMeasureImpl measure)

notifyClefSpacing

public void notifyClefSpacing(int spacing)

notifyKeySignatureSpacing

public void notifyKeySignatureSpacing(int spacing)

notifyWidth

public void notifyWidth(int width)

getMaxWidth

public int getMaxWidth()