org.herac.tuxguitar.gui.editors.tab

Class SilenceCoords

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)

Constructor Details

SilenceCoords

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

Method Details

getComponent

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

getDuration

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

getPosX

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

getPosY

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

getSilence

public Silence getSilence()

getSpan

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

getStart

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

isPlaying

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

paint

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

setDuration

public void setDuration(Duration duration)
Asigna la duracion del silencio
Specified by:
setDuration in interface MeasureComponent

setStart

public void setStart(long start)
Asigna el start de el silencio
Specified by:
setStart in interface MeasureComponent

update

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