Introduction
The java minmaxmutable example is extracted from the most popular open source projects, you can refer to the following example for usage.
Programming language: Java
Class/type: MinMaxMutable
Example#1File:
TextLimitFinder.javaProject:
plantuml/plantuml
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());
}
Example#2File:
TextLimitFinder.javaProject:
plantuml/plantuml
public double getMinY() {
return minmax.getMinY();
}
Example#3File:
TextLimitFinder.javaProject:
plantuml/plantuml
public TextLimitFinder(StringBounder stringBounder, boolean initToZero) {
this(stringBounder, MinMaxMutable.getEmpty(initToZero), new UTranslate());
}
Example#4File:
TextLimitFinder.javaProject:
plantuml/plantuml
public double getMaxX() {
return minmax.getMaxX();
}