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 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.
JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.
JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvm/hotspot/ui/Annotation.java
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.ui;
import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.utilities.*;
/** This can be extended, along with AnnotatedMemoryPanel, to be an
arbitrarily complex mechanism, supporting user interaction,
etc. */
public class Annotation {
private Interval interval;
// List<String>
private java.util.List strings;
// List<Integer>
private java.util.List heights;
private Color baseColor;
private int width;
private int height;
private int x;
private int y;
/** The Annotation can handle the sense of lowAddress and
highAddress being swapped. */
public Annotation(Address lowAddress,
Address highAddress,
String s) {
strings = new ArrayList();
heights = new ArrayList();
for (StringTokenizer tok = new StringTokenizer(s, "\n"); tok.hasMoreTokens(); ) {
strings.add(tok.nextToken());
}
if (AddressOps.lessThan(highAddress, lowAddress)) {
Address temp = lowAddress;
lowAddress = highAddress;
highAddress = temp;
}
interval = new Interval(lowAddress, highAddress);
}
public Interval getInterval() {
return interval;
}
public Address getLowAddress() {
return (Address) getInterval().getLowEndpoint();
}
public Address getHighAddress() {
return (Address) getInterval().getHighEndpoint();
}
/** Draw the annotation at its current (x, y) position with its
current color */
public void draw(Graphics g) {
g.setColor(baseColor);
int tmpY = y;
for (int i = 0; i < strings.size(); i++) {
String s = (String) strings.get(i);
Integer h = (Integer) heights.get(i);
g.drawString(s, x, tmpY);
tmpY += h.intValue();
}
}
/** Sets the base color of this annotation. The annotation may
render sub-portions in a different color if desired. */
public void setColor(Color c) {
this.baseColor = c;
}
/** Returns the base color of this annotation. */
public Color getColor() {
return baseColor;
}
/** Computes width and height for this Annotation. Retrieve the
computed information using getWidth() and getHeight(). Separated
because the width and height only need to be recomputed if the
font changes. */
public void computeWidthAndHeight(Graphics g) {
width = 0;
height = 0;
heights.clear();
for (Iterator iter = strings.iterator(); iter.hasNext(); ) {
String s = (String) iter.next();
Rectangle2D bounds = GraphicsUtilities.getStringBounds(s, g);
width = Math.max(width, (int) bounds.getWidth());
height += (int) bounds.getHeight();
heights.add(new Integer((int) bounds.getHeight()));
}
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
/** Set the x and y position of this annotation */
public void setXAndY(int x, int y) {
this.x = x; this.y = y;
}
public void setX(int x) {
this.x = x;
}
public int getX() {
return x;
}
public void setY(int y) {
this.y = y;
}
public int getY() {
return y;
}
public Rectangle getBounds() {
return new Rectangle(x, y, width, height);
}
public String toString() {
String result = "Annotation: lowAddr: " + getLowAddress() + " highAddr: " + getHighAddress() + " strings: " + strings.size();
for (int i = 0; i < strings.size(); i++) {
result += "\n" + (String) strings.get(i);
}
return result;
}
}
⏎ sun/jvm/hotspot/ui/Annotation.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-11.0.1-src.zip File size: 1243786 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module
2020-02-29, ≈409🔥, 0💬
Popular Posts:
maven-compat-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Compact module. The JAR file name may ...
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...