Beispiel #1
0
 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());
 }
Beispiel #2
0
 public double getMinY() {
   return minmax.getMinY();
 }
Beispiel #3
0
 public TextLimitFinder(StringBounder stringBounder, boolean initToZero) {
   this(stringBounder, MinMaxMutable.getEmpty(initToZero), new UTranslate());
 }
Beispiel #4
0
 public double getMaxX() {
   return minmax.getMaxX();
 }