Lines Matching defs:metrics
258 final FontMetrics metrics = progressBar.getFontMetrics(progressBar.getFont());
260 final Dimension size = isHorizontal() ? getPreferredHorizontalSize(metrics) : getPreferredVerticalSize(metrics);
268 protected Dimension getPreferredHorizontalSize(final FontMetrics metrics) {
275 final int stringWidth = metrics.stringWidth(progString);
285 final int stringHeight = metrics.getHeight() + metrics.getDescent();
292 protected Dimension getPreferredVerticalSize(final FontMetrics metrics) {
299 final int stringHeight = metrics.getHeight() + metrics.getDescent();
305 final int stringWidth = metrics.stringWidth(progString);