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.jconsole.jmod - JConsole Tool
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool,
which can be invoked by the "jconsole" command.
JDK 11 JConsole tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jconsole.jmod.
JDK 11 JConsole tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JConsole tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jconsole.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jconsole/Utilities.java
/* * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.jconsole; import java.awt.*; import javax.accessibility.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.tree.*; import sun.tools.jconsole.inspector.*; import static java.lang.Math.*; /** * Miscellaneous utility methods for JConsole */ public class Utilities { private static final String windowsLaF = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; public static void updateTransparency(JComponent comp) { LookAndFeel laf = UIManager.getLookAndFeel(); boolean transparent = laf.getClass().getName().equals(windowsLaF); setTabbedPaneTransparency(comp, transparent); } private static void setTabbedPaneTransparency(JComponent comp, boolean transparent) { for (Component child : comp.getComponents()) { if (comp instanceof JTabbedPane) { setTransparency((JComponent)child, transparent); } else if (child instanceof JComponent) { setTabbedPaneTransparency((JComponent)child, transparent); } } } private static void setTransparency(JComponent comp, boolean transparent) { comp.setOpaque(!transparent); for (Component child : comp.getComponents()) { if (child instanceof JPanel || child instanceof JSplitPane || child instanceof JScrollPane || child instanceof JViewport || child instanceof JCheckBox) { setTransparency((JComponent)child, transparent); } if (child instanceof XTree) { XTree t = (XTree)child; DefaultTreeCellRenderer cr = (DefaultTreeCellRenderer)t.getCellRenderer(); cr.setBackground(null); cr.setBackgroundNonSelectionColor(new Color(0, 0, 0, 1)); t.setCellRenderer(cr); setTransparency((JComponent)child, transparent); } } } /** * A slightly modified border for JScrollPane to be used with a JTable inside * a JTabbedPane. It has only top part and the rest is clipped to make the * overall border less thick. * The top border helps differentiating the containing table from its container. */ public static JScrollPane newTableScrollPane(JComponent comp) { return new TableScrollPane(comp); } @SuppressWarnings("serial") private static class TableScrollPane extends JScrollPane { public TableScrollPane(JComponent comp) { super(comp); } protected void paintBorder(Graphics g) { Border border = getBorder(); if (border != null) { Insets insets = border.getBorderInsets(this); if (insets != null) { Shape oldClip = g.getClip(); g.clipRect(0, 0, getWidth(), insets.top); super.paintBorder(g); g.setClip(oldClip); } } } } public static void setAccessibleName(Accessible comp, String name) { comp.getAccessibleContext().setAccessibleName(name); } public static void setAccessibleDescription(Accessible comp, String description) { comp.getAccessibleContext().setAccessibleDescription(description); } /** * Modifies color c1 to ensure it has acceptable contrast * relative to color c2. * * http://www.w3.org/TR/AERT#color-contrast * http://www.cs.rit.edu/~ncs/color/t_convert.html#RGB%20to%20YIQ%20&%20YIQ%20to%20RGB */ public static Color ensureContrast(Color c1, Color c2) { double y1 = getColorBrightness(c1); double y2 = getColorBrightness(c2); if (abs(y1 - y2) < 125.0) { if (y2 < 128.0) { c1 = setColorBrightness(c1, y2 + 125.0); } else { c1 = setColorBrightness(c1, y2 - 125.0); } } return c1; } public static double getColorBrightness(Color c) { // Convert RGB -> YIQ and return the Y value return (c.getRed() * 0.299 + c.getGreen() * 0.587 + c.getBlue() * 0.114); } private static Color setColorBrightness(Color c, double y) { // Convert YIQ -> RGB double i = (c.getRed() * 0.596 - c.getGreen() * 0.275 - c.getBlue() * 0.321); double q = (c.getRed() * 0.212 - c.getGreen() * 0.523 + c.getBlue() * 0.311); // Keep values in legal range. This may reduce the // achieved contrast somewhat. int r = max(0, min(255, (int)round(y + i * 0.956 + q * 0.621))); int g = max(0, min(255, (int)round(y - i * 0.272 - q * 0.647))); int b = max(0, min(255, (int)round(y - i * 1.105 + q * 1.702))); return new Color(r, g, b); } }
⏎ sun/tools/jconsole/Utilities.java
Or download all of them as a single archive file:
File name: jdk.jconsole-11.0.1-src.zip File size: 164713 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdeps.jmod - JDeps Tool
2020-07-07, 23931👍, 0💬
Popular Posts:
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
JDK 17 jdk.jdi.jmod is the JMOD file for JDK 17 JDI (Java Debug Interface) tool. JDK 17 JDI tool com...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...