/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
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...] |
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 | 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 | 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 | 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 | AquaInternalFrameDockIconUI.java | 240 final FontMetrics metrics = getFontMetrics(getFont()); 241 setSize(SwingUtilities.computeStringWidth(metrics, getText()) + ROUND_ADDITIONAL_WIDTH * 2, metrics.getAscent() + NUB_HEIGHT + ROUND_ADDITIONAL_HEIGHT); 249 final FontMetrics metrics = getFontMetrics(font); 253 final int ascent = metrics.getAscent(); 255 final Rectangle2D stringBounds = metrics.getStringBounds(text, g);
|
/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/sun/font/ |
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...] |
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 | 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 | FileFontStrike.java | 71 /* The "metrics" information requested by clients is usually nothing 73 * In most cases this advance and other metrics information is stored 158 * B&W metrics will differ which normally isn't the case, although 224 * GDI will return the integer metrics, not fractional metrics, which 343 * necessary for the fractional metrics case, but there are 575 * then metrics info there is valid and can just be copied. 607 * subsequent metrics calls will be able to use it as is the case 617 Point2D.Float metrics = new Point2D.Float(advance, 0f); 618 desc.devTx.deltaTransform(metrics, metric [all...] |
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 | 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 | FontDesignMetrics.java | 50 * and a set of hints that guide their display. It provides more metrics 54 * The design metrics for a Font are obtained from Font.getDesignMetrics(). 70 * The FontDesignMetrics class expresses font metrics in terms of arbitrary 78 * in metrics. For example, Type 1 fonts divide the em-square into a 187 * enqueued, that a new metrics has been put into the table 262 * by this code as they use the metrics of the physical anyway. 284 // the metrics cache but is needed for the shared key. 297 * metrics instance. The key to use in the map is a new 311 /* Here's where we keep the recent metrics */ 359 StrikeMetrics metrics [all...] |
/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 | 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 | 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 | 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/java2d/pipe/ |
H A D | TextRenderer.java | 65 int metrics[] = gl.getMetrics(); 66 int gx1 = metrics[0]; 67 int gy1 = metrics[1]; 68 int w = metrics[2]; 70 int gy2 = gy1 + metrics[3];
|
/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/share/classes/sun/java2d/loops/ |
H A D | DrawGlyphList.java | 109 int metrics[] = gl.getMetrics(); 110 int gx1 = metrics[0]; 111 int gy1 = metrics[1]; 112 int w = metrics[2]; 114 int gy2 = gy1 + metrics[3];
|
H A D | DrawGlyphListAA.java | 107 int metrics[] = gl.getMetrics(); 108 int gx1 = metrics[0]; 109 int gy1 = metrics[1]; 110 int w = metrics[2]; 112 int gy2 = gy1 + metrics[3];
|
/openjdk7/jdk/src/share/classes/sun/awt/im/ |
H A D | CompositionArea.java | 125 FontMetrics metrics = null; 127 metrics = g.getFontMetrics(); 132 TEXT_ORIGIN_Y - metrics.getAscent(), 133 0, metrics.getAscent() + metrics.getDescent()); 211 FontMetrics metrics = g.getFontMetrics(); 212 Rectangle2D maxCharBoundsRec = metrics.getMaxCharBounds(g);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
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...] |
/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
|