/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | CoreMetrics.java | 39 public CoreMetrics(float ascent, argument 51 this.ascent = ascent; 70 return Float.floatToIntBits(ascent + ssOffset); 88 return ascent == rhs.ascent 111 return fullOffsets[4] + ascent; 119 public final float ascent; field in class:CoreMetrics
|
H A D | FontLineMetrics.java | 58 return cm.ascent;
|
H A D | FontDesignMetrics.java | 114 // height, ascent, descent, leading are reported to the client 122 private float ascent; field in class:FontDesignMetrics 360 this.ascent = metrics.getAscent(); 550 * Returns the typographic ascent of the font. This is the maximum distance 555 return (int)(roundingUpValue + this.ascent); 568 // for leading, ascent & descent sum to height. 580 // because typically clients use ascent to determine the y location to
|
H A D | GraphicComponent.java | 311 float top = -cm.ascent;
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WFontMetrics.java | 48 * The standard ascent of the font. This is the logical height 53 int ascent; field in class:WFontMetrics 66 * and the ascent of the next line. The height metric is calculated 74 * It is the sum of the ascent+descent+leading. There is no 77 * the standard ascent and descent metrics. 82 * The maximum ascent for all characters in this font. No character 125 * Get ascent. 128 return ascent;
|
/openjdk7/jdk/src/share/classes/java/awt/font/ |
H A D | GraphicAttribute.java | 109 * Returns the ascent of this <code>GraphicAttribute</code>. A 110 * graphic can be rendered above its ascent. 111 * @return the ascent of this <code>GraphicAttribute</code>. 140 * A graphic may be rendered beyond its origin, ascent, descent, 143 * Default bounds is the rectangle (0, -ascent, advance, ascent+descent). 148 float ascent = getAscent(); 149 return new Rectangle2D.Float(0, -ascent, 150 getAdvance(), ascent+getDescent());
|
H A D | TextLine.java | 69 public final float ascent; field in class:TextLine.TextLineMetrics 74 public TextLineMetrics(float ascent, argument 78 this.ascent = ascent; 150 float ascent = 0; 155 // ascent + descent must not be less than this value 177 ascent = Math.max(ascent, -baselineOffset + cm.ascent); 186 float graphicHeight = cm.ascent [all...] |
H A D | TextLayout.java | 86 * <li>metric information such as ascent, descent, and advance, and 220 * baseline-relative coordinates' (e.g. ascent, advance), and others 649 * A utility to rebuild the ascent/descent/leading/advance cache. 902 * Returns the ascent of this <code>TextLayout</code>. 903 * The ascent is the distance from the top (right) of the 905 * positive or zero. The ascent is sufficient to 907 * ascent, offset, and baseline of each glyph. The ascent is 908 * the maximum ascent from the baseline of all the text in the 910 * @return the ascent o [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | SizeRequirements.java | 211 int ascent = (int) (req.alignment * req.minimum); 212 int descent = req.minimum - ascent; 213 totalAscent.minimum = Math.max(ascent, totalAscent.minimum); 216 ascent = (int) (req.alignment * req.preferred); 217 descent = req.preferred - ascent; 218 totalAscent.preferred = Math.max(ascent, totalAscent.preferred); 221 ascent = (int) (req.alignment * req.maximum); 222 descent = req.maximum - ascent; 223 totalAscent.maximum = Math.max(ascent, totalAscent.maximum); 469 int ascent [all...] |
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | FlowLayout.java | 508 * @param ascent Ascent for the components. This is only valid if 516 boolean useBaseline, int[] ascent, 542 if (ascent[i] >= 0) { 543 maxAscent = Math.max(maxAscent, ascent[i]); 559 if (useBaseline && ascent[i] >= 0) { 560 cy = y + baselineOffset + maxAscent - ascent[i]; 598 int[] ascent = null; 602 ascent = new int[nmembers]; 615 ascent[i] = baseline; 619 ascent[ 514 moveComponents(Container target, int x, int y, int width, int height, int rowStart, int rowEnd, boolean ltr, boolean useBaseline, int[] ascent, int[] descent) argument [all...] |
H A D | GridBagLayout.java | 1260 if (constraints.ascent >= 0) { 1264 constraints.ascent); 1280 constraints.ascent); 1301 // added to the descent, the rest to the ascent. 1316 // added to the ascent, the rest to the descent. 1466 if (constraints.ascent >= 0) { 1480 pixels_diff = constraints.ascent + 1539 * obtained and the {@code constraints} ascent, descent and 1553 constraints.ascent = c.getBaseline(w, h); 1554 if (constraints.ascent > [all...] |
H A D | GridBagConstraints.java | 555 // ascent and descent include the insets and ipady values. 556 transient int ascent; field in class:GridBagConstraints
|
H A D | Font.java | 1094 // can't get ascent and descent here, recursive call to this fn, 1126 // angle of both vectors, if one is non-zero, compute the minimum ascent 1151 // trans = 1/2 of ascent * x 1152 // assume ascent is 3/4 of point size 2179 float ascent = metrics[0]; 2185 ascent -= ssOffset; 2188 float height = ascent + descent + leading; 2192 float[] baselineOffsets = { 0, (descent/2f - ascent) / 2f, -ascent }; 2223 CoreMetrics cm = new CoreMetrics(ascent, descen [all...] |
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/ |
H A D | X11FontScaler_md.c | 214 return ((XFontStruct *)font)->ascent; 232 int ascent, descent, direction; local 249 &direction, &ascent, &descent, newChar); 250 /* XTextExtents16(xFont, xChar, 1, &direction, &ascent, &descent, newChar); */ 265 int width, height, direction, ascent, descent; local 277 /* XTextExtents16(xFont, xChar, 1, &direction, &ascent, &descent, &xcs); */ 279 &direction, &ascent, &descent, &xcs); 281 height = xcs.ascent+xcs.descent; 289 glyphInfo->topLeftY = -xcs.ascent; 315 -xcs.lbearing, xcs.ascent, xCha [all...] |
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/ |
H A D | X11FontMetrics.java | 44 * The standard ascent of the font. This is the logical height 49 int ascent; field in class:X11FontMetrics 62 * and the ascent of the next line. The height metric is calculated 70 * It is the sum of the ascent+descent+leading. There is no 73 * the standard ascent and descent metrics. 78 * The maximum ascent for all characters in this font. No character 131 * Get ascent. 134 return ascent;
|
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | DefaultPreviewPanel.java | 83 int ascent = fm.getAscent(); 128 int ascent = fm.getAscent(); 139 ascent+2); 149 height+ascent+textGap+2); 162 ((height+textGap) * 2)+ascent+2);
|
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | BoxView.java | 978 // if the alignment is 1 then we need to fit into the ascent 1024 int ascent; 1029 ascent = (int)(align * span); 1030 descent = (int)(span - ascent); 1031 totalAscent.preferred = Math.max(ascent, totalAscent.preferred); 1038 ascent = (int)(align * span); 1039 descent = (int)(span - ascent); 1040 totalAscent.minimum = Math.max(ascent, totalAscent.minimum); 1044 ascent = (int)(align * span); 1045 descent = (int)(span - ascent); [all...] |
/openjdk7/jdk/src/share/demo/management/MemoryMonitor/ |
H A D | MemoryMonitor.java | 127 private int ascent, descent; field in class:MemoryMonitor.Surface 213 big.drawString(String.valueOf((int)totalMemory/1024) + "K Max ", x1+4.0f, (float) y1 + ascent+0.5f); 217 big.drawString(mp.getName(), x1+x2/2, (float) y1 + ascent+0.5f); 226 float ssH = ascent + descent; 361 ascent = (int) fm.getAscent();
|
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/ |
H A D | BorderedComponent.java | 348 int ascent = Math.max(0, baseline); 349 int descent = labelDim.height - ascent; 359 diff = Math.max(0, ascent/2 + TEXT_SPACING - EDGE_SPACING); 362 compLoc.y = grooveRect.y + insets.top/2 - (ascent + descent) / 2 - 1; 387 if (grooveRect.y > compLoc.y - ascent) { 413 compLoc.x - 1, compLoc.y + ascent + descent, 415 y + height - compLoc.y - ascent - descent)) {
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaInternalFrameDockIconUI.java | 253 final int ascent = metrics.getAscent(); 277 SwingUtilities2.drawString(this, g, text, x, 2 + ascent); 279 SwingUtilities2.drawString(this, g, text, x, 1 + ascent);
|
/openjdk7/jdk/src/solaris/native/sun/awt/ |
H A D | awt_Font.c | 108 jfieldID ascent; member in struct:X11FontMetricsIDs 135 x11FontMetricsIDs.ascent = 136 (*env)->GetFieldID(env, cls, "ascent", "I"); 687 /* with negative ascent. */ 688 if (xfont == (Font) NULL || xfont->ascent < 0) { 877 (*env)->SetIntField(env, this, x11FontMetricsIDs.ascent, 884 (jint) fdata->xfont->max_bounds.ascent); 889 (*env)->SetIntField(env, this, x11FontMetricsIDs.ascent, 890 (jint) fdata->xfont->ascent); 897 (jint) fdata->xfont->ascent [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/ |
H A D | SourceCodePanel.java | 90 int ascent = fm.getMaxAscent(); // Causes proper alignment -- trial-and-error 95 g.drawString(str, width - strWidth - LINE_NO_SPACE, ascent + rowHeight * i);
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_Font.h | 136 INLINE void SetAscent(int ascent) { m_ascent = ascent; } argument 178 * Sets the ascent of the font. This member should be called if 251 /* The ascent of this font. */
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicHTML.java | 98 * from it. Otherwise the baseline is the value <code>y + ascent</code>. 100 static int getBaseline(JComponent c, int y, int ascent, argument 110 return y + ascent;
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifBorders.java | 680 int ascent = fm.getAscent(); 685 textLoc.y = y + ascent + TEXT_SPACING; 713 int ascent = 16; 725 ascent = fm.getAscent(); 728 insets.top += ascent + descent + TEXT_SPACING + GROOVE_HEIGHT;
|