package org.herac.tuxguitar.gui.editors.tab;
import org.herac.tuxguitar.gui.editors.TGPainter;
import org.herac.tuxguitar.gui.editors.tab.layout.ViewLayout;
import org.herac.tuxguitar.song.models.TGText;
public class TGTextImpl extends TGText{
public void paint(ViewLayout layout,TGPainter painter,int fromX, int fromY){
TGBeatImpl beat = (TGBeatImpl)getBeat();
TGMeasureImpl measure = beat.getMeasureImpl();
int x = fromX + beat.getSpacing() + beat.getPosX();
int y = fromY + measure.getTs().getPosition(TGTrackSpacing.POSITION_TEXT);
layout.setTextStyle(painter);
painter.drawString(getValue(), x, y);
}
}