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

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.tab.SilenceCoords
All Implemented Interfaces:
MeasureComponent

public class SilenceCoords
extends java.lang.Object
implements MeasureComponent


Constructor Summary
SilenceCoords(Tablature tablature, MeasureCoords meassureCoords, Silence silence, int posX)
           
 
Method Summary
 Component getComponent()
           
 Duration getDuration()
           
 int getPosX()
           
 int getPosY()
           
 Silence getSilence()
           
 int getSpan()
           
 long getStart()
           
 boolean isPlaying()
           
 void paint(ViewLayout layout, GC gc, int fromX, int fromY)
           
 void setDuration(Duration duration)
          Asigna la duracion del silencio
 void setStart(long start)
          Asigna el start de el silencio
 void update(ViewLayout layout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilenceCoords

public SilenceCoords(Tablature tablature,
                     MeasureCoords meassureCoords,
                     Silence silence,
                     int posX)
Method Detail

update

public void update(ViewLayout layout)
Specified by:
update in interface MeasureComponent

paint

public void paint(ViewLayout layout,
                  GC gc,
                  int fromX,
                  int fromY)
Specified by:
paint in interface MeasureComponent

isPlaying

public boolean isPlaying()
Specified by:
isPlaying in interface MeasureComponent

setDuration

public void setDuration(Duration duration)
Asigna la duracion del silencio

Specified by:
setDuration in interface MeasureComponent

getDuration

public Duration getDuration()
Specified by:
getDuration in interface MeasureComponent

setStart

public void setStart(long start)
Asigna el start de el silencio

Specified by:
setStart in interface MeasureComponent

getStart

public long getStart()
Specified by:
getStart in interface MeasureComponent

getSilence

public Silence getSilence()

getPosX

public int getPosX()
Specified by:
getPosX in interface MeasureComponent

getPosY

public int getPosY()
Specified by:
getPosY in interface MeasureComponent

getSpan

public int getSpan()
Specified by:
getSpan in interface MeasureComponent

getComponent

public Component getComponent()
Specified by:
getComponent in interface MeasureComponent