private void drawText(double x, double y, UText text) { final Dimension2D dim = stringBounder.calculateDimension(text.getFontConfiguration().getFont(), text.getText()); y -= dim.getHeight() - 1.5; minmax.addPoint(x, y); minmax.addPoint(x, y + dim.getHeight()); minmax.addPoint(x + dim.getWidth(), y); minmax.addPoint(x + dim.getWidth(), y + dim.getHeight()); }
public double getMinY() { return minmax.getMinY(); }
public TextLimitFinder(StringBounder stringBounder, boolean initToZero) { this(stringBounder, MinMaxMutable.getEmpty(initToZero), new UTranslate()); }
public double getMaxX() { return minmax.getMaxX(); }