/openjdk7/jdk/test/java/lang/management/RuntimeMXBean/ |
H A D | UpTime.java | 36 private static RuntimeMXBean metrics field in class:UpTime 40 long jvmStartTime = metrics.getStartTime(); 42 long metricsStart = metrics.getUptime(); 71 long metricsEnd = metrics.getUptime();
|
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | GlyphPainter1.java | 62 int width = Utilities.getTabbedTextWidth(v, text, metrics, (int) x, e, p0, 70 return metrics.getHeight(); 79 return metrics.getAscent(); 88 return metrics.getDescent(); 106 int width = Utilities.getTabbedTextWidth(v, text, metrics, x, expander, p, 113 int y = alloc.y + metrics.getHeight() - metrics.getDescent(); 117 g.setFont(metrics.getFont()); 138 metrics.getHeight()); 144 int width = Utilities.getTabbedTextWidth(v, text, metrics, allo 249 FontMetrics metrics; field in class:GlyphPainter1 [all...] |
H A D | PlainView.java | 198 * Checks to see if the font metrics and longest line 210 tabSize = getTabSize() * metrics.charWidth('m'); 233 return getElement().getElementCount() * metrics.getHeight(); 271 int fontHeight = metrics.getHeight(); 289 int y = lineArea.y + metrics.getAscent(); 358 int xOffs = Utilities.getTabbedTextWidth(s, metrics, tabBase, this,p0); 364 lineArea.height = metrics.getHeight(); 402 int fontHeight = metrics.getHeight(); 429 int offs = p0 + Utilities.getTabbedTextOffset(s, metrics, 616 if (metrics ! 682 protected FontMetrics metrics; field in class:PlainView [all...] |
H A D | Utilities.java | 121 FontMetrics metrics = SwingUtilities2.getFontMetrics(component, g); 165 nextX += metrics.charWidth(' '); 168 nextX += metrics.charWidth(' ') + spaceAddon; 199 * @param metrics the font metrics to use for the calculation 206 public static final int getTabbedTextWidth(Segment s, FontMetrics metrics, int x, argument 208 return getTabbedTextWidth(null, s, metrics, x, e, startOffset, null); 219 static final int getTabbedTextWidth(View view, Segment s, FontMetrics metrics, int x, argument 255 nextX += metrics.charsWidth(txt, i-charCount, charCount); 262 nextX += metrics 300 getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) argument 306 getTabbedTextOffset(View view, Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, int[] justificationData) argument 314 getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round) argument 329 getTabbedTextOffset(View view, Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round, int[] justificationData) argument 449 getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) argument [all...] |
H A D | WrappedPlainView.java | 238 p = p0 + Utilities.getBreakLocation(segment, metrics, 242 p = p0 + Utilities.getTabbedTextOffset(segment, metrics, 296 // update font metrics which may be used by the child views 318 metrics = host.getFontMetrics(f); 319 tabSize = getTabSize() * metrics.charWidth('m'); 348 * metrics for the nested lines to use. 396 * metrics are cached (for the nested lines which use 397 * the metrics to determine the height of the potentially 416 * metrics are cached (for the nested lines which use 417 * the metrics t 511 FontMetrics metrics; field in class:WrappedPlainView [all...] |
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | PhysicalFont.java | 82 /* These 3 metrics methods should be implemented to return 90 Point2D.Float metrics); 89 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
H A D | NullFontScaler.java | 48 Point2D.Float metrics) { 49 metrics.x = 0; 50 metrics.y = 0; 47 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
H A D | CompositeFont.java | 31 * list, which is not used in metrics or queries on the composite, but 75 /* Only the first "numMetricsSlots" slots are used for font metrics. 209 * 1) All metrics slots probably may be initialised anyway as many 210 * apps will query the overall font metrics. However this is not an 314 public void getStyleMetrics(float pointSize, float[] metrics, int offset) { argument 317 super.getStyleMetrics(pointSize, metrics, offset); 319 font.getStyleMetrics(pointSize, metrics, offset);
|
H A D | FileFont.java | 69 * used to get glyph images and metrics. 195 void getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) { argument 197 getScaler().getGlyphMetrics(pScalerContext, glyphCode, metrics); 200 getGlyphMetrics(pScalerContext, glyphCode, metrics);
|
H A D | FontScaler.java | 168 Point2D.Float metrics) 167 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
H A D | FreetypeFontScaler.java | 98 int glyphCode, Point2D.Float metrics) 105 metrics); 109 getGlyphMetrics(0L, glyphCode, metrics); 232 int glyphCode, Point2D.Float metrics); 97 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument 230 getGlyphMetricsNative(Font2D font, long pScalerContext, long pScaler, int glyphCode, Point2D.Float metrics) argument
|
H A D | GlyphList.java | 38 * through the device metrics and graybits of the individual glyphs that 58 * int metrics[] = gl.getMetrics(); 60 * int glyphx = metrics[0]; 61 * int glyphy = metrics[1]; 62 * int glyphw = metrics[2]; 63 * int glyphh = metrics[3]; 85 int metrics[]; field in class:GlyphList 134 * This is true only if LCD text and fractional metrics hints 300 /* We co-opt the 5 element array that holds per glyph metrics in order 307 if (metrics [all...] |
H A D | Font2D.java | 380 * The length of the metrics array must be >= 8. This method will 382 * metrics[0]: ascent 383 * metrics[1]: descent 384 * metrics[2]: leading 385 * metrics[3]: max advance 386 * metrics[4]: strikethrough offset 387 * metrics[5]: strikethrough thickness 388 * metrics[6]: underline offset 389 * metrics[7]: underline thickness 393 float metrics[]) { 391 getFontMetrics(Font font, AffineTransform at, Object aaHint, Object fmHint, float metrics[]) argument 421 getStyleMetrics(float pointSize, float[] metrics, int offset) argument 436 getFontMetrics(Font font, FontRenderContext frc, float metrics[]) argument [all...] |
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaTabbedPaneContrastUI.java | 50 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) { argument 67 AquaUtils.paintDropShadowText(g2d, tabPane, font, metrics, textRect.x, textRect.y, 0, 1, textColor, shadowColor, title); 74 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
|
H A D | AquaPainter.java | 118 final NineSliceMetrics metrics = metricsProvider.getNineSliceMetricsForState(stateToPaint); 119 if (metrics == null) { 123 slicesRef = new RecyclableJRSUISlicedImageControl(control, stateToPaint, metrics); 181 RecyclableJRSUISlicedImageControl(final JRSUIControl control, final JRSUIState state, final NineSliceMetrics metrics) { argument 182 super(metrics); 189 BufferedImage image = new BufferedImage(metrics.minW, metrics.minH, BufferedImage.TYPE_INT_ARGB_PRE); 195 control.paint(SunWritableRaster.stealData(buffer, 0), metrics.minW, metrics.minH, 0, 0, metrics [all...] |
H A D | AquaInternalFrameBorder.java | 84 private final AquaInternalFrameBorderMetrics metrics; field in class:AquaInternalFrameBorder 109 metrics = AquaInternalFrameBorderMetrics.getMetrics(true); 115 metrics = AquaInternalFrameBorderMetrics.getMetrics(false); 120 titleBarPainter.state.setValue(metrics.titleBarHeight); 124 fThisButtonSpan = (metrics.buttonWidth * 3) + (metrics.buttonPadding * 2); 125 fThisLeftSideTotal = metrics.leftSidePadding + fThisButtonSpan + sAfterButtonPad; 158 g.setFont(metrics.font); 162 final int baseline = (metrics.titleBarHeight + fm.getAscent() - fm.getLeading() - fm.getDescent()) / 2; 225 final int iconYPostion = (metrics [all...] |
H A D | AquaProgressBarUI.java | 258 final FontMetrics metrics = progressBar.getFontMetrics(progressBar.getFont()); 260 final Dimension size = isHorizontal() ? getPreferredHorizontalSize(metrics) : getPreferredVerticalSize(metrics); 268 protected Dimension getPreferredHorizontalSize(final FontMetrics metrics) { argument 275 final int stringWidth = metrics.stringWidth(progString); 285 final int stringHeight = metrics.getHeight() + metrics.getDescent(); 292 protected Dimension getPreferredVerticalSize(final FontMetrics metrics) { argument 299 final int stringHeight = metrics.getHeight() + metrics [all...] |
H A D | AquaImageFactory.java | 310 final NineSliceMetrics metrics; field in class:AquaImageFactory.SlicedImageControl 327 public SlicedImageControl(final Image img, final NineSliceMetrics metrics) { argument 328 this.metrics = metrics; 330 if (img.getWidth(null) != metrics.minW || img.getHeight(null) != metrics.minH) { 334 totalWidth = metrics.minW; 335 totalHeight = metrics.minH; 336 centerColWidth = totalWidth - metrics.wCut - metrics 427 final NineSliceMetrics metrics; field in class:AquaImageFactory.RecyclableSlicedImageControl 429 RecyclableSlicedImageControl(final NineSliceMetrics metrics) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/font/ |
H A D | NativeFont.java | 95 Point2D.Float metrics) { 94 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
/openjdk7/jdk/src/macosx/classes/sun/font/ |
H A D | CFont.java | 55 Point2D.Float metrics) { 54 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
/openjdk7/jdk/src/solaris/native/sun/font/ |
H A D | X11FontScaler.c | 248 /* If number of glyphs is 256 or less, the metrics are 251 * case), then these metrics seem flaky and there's no 319 jobject metrics; local 342 metrics = (*env)->NewObject(env, sunFontIDs.strikeMetricsClass, 347 return metrics;
|
/openjdk7/jdk/src/share/demo/applets/BarChart/ |
H A D | BarChart.java | 60 private FontMetrics metrics; field in class:BarChart 91 metrics = getFontMetrics(font); 141 maxLabelWidth = Math.max(metrics.stringWidth(labels[i]), maxLabelWidth); 197 int titleWidth = metrics.stringWidth(title); 199 int cy = getSize().height - metrics.getDescent(); 213 int barHeight = metrics.getHeight(); 219 + metrics.stringWidth(Integer.toString(maxValue)); 223 cy = getSize().height - metrics.getDescent() - metrics.getHeight() 266 int cy = getSize().height - metrics [all...] |
/openjdk7/jdk/src/solaris/classes/sun/font/ |
H A D | NativeFont.java | 297 Point2D.Float metrics) { 296 getGlyphMetrics(long pScalerContext, int glyphCode, Point2D.Float metrics) argument
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthGraphicsUtils.java | 167 * @param metrics FontMetrics, may be ignored 171 FontMetrics metrics, String text) { 172 return SwingUtilities2.stringWidth(ss.getComponent(), metrics, 170 computeStringWidth(SynthContext ss, Font font, FontMetrics metrics, String text) argument
|
H A D | SynthTabbedPaneUI.java | 393 FontMetrics metrics = getFontMetrics(font); 399 tabContext, metrics, title, icon, SwingUtilities.CENTER, 403 return textRect.y + metrics.getAscent() + getBaselineOffset(); 643 FontMetrics metrics = SwingUtilities2.getFontMetrics(tabPane, g, font); 646 layoutLabel(ss, tabPlacement, metrics, tabIndex, title, icon, 649 paintText(ss, g, tabPlacement, font, metrics, 657 FontMetrics metrics, int tabIndex, 668 ss.getStyle().getGraphicsUtils(ss).layoutText(ss, metrics, title, 685 Font font, FontMetrics metrics, int tabIndex, 757 FontMetrics metrics 656 layoutLabel(SynthContext ss, int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument 683 paintText(SynthContext ss, Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument 772 calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) argument [all...] |