package gve.calc.formula;

import java.awt.*;

public class HasBaselineContainer extends Container implements HasBaseline {
	public int getBaseline() {
		LayoutManager layout = getLayout();
		if (layout instanceof BaselineLayout)
			return ((BaselineLayout)layout).getBaseline(this);
		else return getSize().height / 2;
	}
}