Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/font/CoreMetrics.java
/*
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/*
*
* (C) Copyright IBM Corp. 2003, All Rights Reserved
*
*/
package sun.font;
import java.awt.font.LineMetrics;
import java.awt.font.GraphicAttribute;
public final class CoreMetrics {
public CoreMetrics(float ascent,
float descent,
float leading,
float height,
int baselineIndex,
float[] baselineOffsets,
float strikethroughOffset,
float strikethroughThickness,
float underlineOffset,
float underlineThickness,
float ssOffset,
float italicAngle) {
this.ascent = ascent;
this.descent = descent;
this.leading = leading;
this.height = height;
this.baselineIndex = baselineIndex;
this.baselineOffsets = baselineOffsets;
this.strikethroughOffset = strikethroughOffset;
this.strikethroughThickness = strikethroughThickness;
this.underlineOffset = underlineOffset;
this.underlineThickness = underlineThickness;
this.ssOffset = ssOffset;
this.italicAngle = italicAngle;
}
public static CoreMetrics get(LineMetrics lm) {
return ((FontLineMetrics)lm).cm;
}
public int hashCode() {
return Float.floatToIntBits(ascent + ssOffset);
}
public boolean equals(Object rhs) {
try {
return equals((CoreMetrics)rhs);
}
catch(ClassCastException e) {
return false;
}
}
public boolean equals(CoreMetrics rhs) {
if (rhs != null) {
if (this == rhs) {
return true;
}
return ascent == rhs.ascent
&& descent == rhs.descent
&& leading == rhs.leading
&& baselineIndex == rhs.baselineIndex
&& baselineOffsets[0] == rhs.baselineOffsets[0]
&& baselineOffsets[1] == rhs.baselineOffsets[1]
&& baselineOffsets[2] == rhs.baselineOffsets[2]
&& strikethroughOffset == rhs.strikethroughOffset
&& strikethroughThickness == rhs.strikethroughThickness
&& underlineOffset == rhs.underlineOffset
&& underlineThickness == rhs.underlineThickness
&& ssOffset == rhs.ssOffset
&& italicAngle == rhs.italicAngle;
}
return false;
}
// fullOffsets is an array of 5 baseline offsets,
// roman, center, hanging, bottom, and top in that order
// this does NOT add the ssOffset
public float effectiveBaselineOffset(float[] fullOffsets) {
switch (baselineIndex) {
case GraphicAttribute.TOP_ALIGNMENT:
return fullOffsets[4] + ascent;
case GraphicAttribute.BOTTOM_ALIGNMENT:
return fullOffsets[3] - descent;
default:
return fullOffsets[baselineIndex];
}
}
public final float ascent;
public final float descent;
public final float leading;
public final float height;
public final int baselineIndex;
public final float[] baselineOffsets; // !! this is a hole, don't expose this class
public final float strikethroughOffset;
public final float strikethroughThickness;
public final float underlineOffset;
public final float underlineThickness;
public final float ssOffset;
public final float italicAngle;
}
⏎ sun/font/CoreMetrics.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, ≈889🔥, 5💬
Popular Posts:
What Is XMLBeans xbean.jar 2.6.0? XMLBeans xbean.jar 2.6.0 is the JAR file for Apache XMLBeans 2.6.0...
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
What is the jaxp\TypeInfoWriter.java provided in the Apache Xerces package? I have Apache Xerces 2.1...
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool, which can be invoked by the "jdeps" co...