View Javadoc

1   package net.sourceforge.barbecue.output;
2   
3   public class DefaultLabelLayout extends LabelLayout {
4   
5   	public DefaultLabelLayout(int x, int y) {
6   		super(x, y, NOT_SET, NOT_SET);
7   	}
8   
9   	protected void calculate() {
10  		bgWidth = (int)textLayout.getBounds().getWidth();
11  		bgHeight = (int)textLayout.getBounds().getHeight();
12  		bgX = x;
13  		bgY = y;
14  		textX = x;
15  		textY = y;
16  	}
17  }