Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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
⏎ javax/swing/plaf/nimbus/ToolTipPainter.java
/* * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.plaf.nimbus; import java.awt.*; import java.awt.geom.*; import java.awt.image.*; import javax.swing.*; import javax.swing.Painter; final class ToolTipPainter extends AbstractRegionPainter { //package private integers representing the available states that //this painter will paint. These are used when creating a new instance //of ToolTipPainter to determine which region/state is being painted //by that instance. static final int BACKGROUND_ENABLED = 1; static final int BACKGROUND_DISABLED = 2; private int state; //refers to one of the static final ints above private PaintContext ctx; //the following 4 variables are reused during the painting code of the layers private Path2D path = new Path2D.Float(); private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); //All Colors used for painting are stored here. Ideally, only those colors being used //by a particular instance of ToolTipPainter would be created. For the moment at least, //however, all are created for each instance. private Color color1 = decodeColor("nimbusBorder", 0.0f, 0.0f, 0.0f, 0); private Color color2 = decodeColor("info", 0.0f, 0.0f, 0.0f, 0); private Color color3 = decodeColor("nimbusBorder", -0.013888836f, 5.823001E-4f, -0.12941176f, 0); //Array of current component colors, updated in each paint call private Object[] componentColors; public ToolTipPainter(PaintContext ctx, int state) { super(); this.state = state; this.ctx = ctx; } @Override protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { //populate componentColors array with colors calculated in getExtendedCacheKeys call componentColors = extendedCacheKeys; //generate this entire method. Each state/bg/fg/border combo that has //been painted gets its own KEY and paint method. switch(state) { case BACKGROUND_ENABLED: paintBackgroundEnabled(g); break; case BACKGROUND_DISABLED: paintBackgroundDisabled(g); break; } } @Override protected final PaintContext getPaintContext() { return ctx; } private void paintBackgroundEnabled(Graphics2D g) { rect = decodeRect1(); g.setPaint(color1); g.fill(rect); rect = decodeRect2(); g.setPaint(color1); g.fill(rect); rect = decodeRect3(); g.setPaint(color1); g.fill(rect); rect = decodeRect4(); g.setPaint(color1); g.fill(rect); rect = decodeRect5(); g.setPaint(color2); g.fill(rect); } private void paintBackgroundDisabled(Graphics2D g) { rect = decodeRect1(); g.setPaint(color3); g.fill(rect); rect = decodeRect2(); g.setPaint(color3); g.fill(rect); rect = decodeRect3(); g.setPaint(color3); g.fill(rect); rect = decodeRect4(); g.setPaint(color3); g.fill(rect); } private Rectangle2D decodeRect1() { rect.setRect(decodeX(2.0f), //x decodeY(1.0f), //y decodeX(3.0f) - decodeX(2.0f), //width decodeY(2.0f) - decodeY(1.0f)); //height return rect; } private Rectangle2D decodeRect2() { rect.setRect(decodeX(0.0f), //x decodeY(1.0f), //y decodeX(1.0f) - decodeX(0.0f), //width decodeY(2.0f) - decodeY(1.0f)); //height return rect; } private Rectangle2D decodeRect3() { rect.setRect(decodeX(0.0f), //x decodeY(2.0f), //y decodeX(3.0f) - decodeX(0.0f), //width decodeY(3.0f) - decodeY(2.0f)); //height return rect; } private Rectangle2D decodeRect4() { rect.setRect(decodeX(0.0f), //x decodeY(0.0f), //y decodeX(3.0f) - decodeX(0.0f), //width decodeY(1.0f) - decodeY(0.0f)); //height return rect; } private Rectangle2D decodeRect5() { rect.setRect(decodeX(1.0f), //x decodeY(1.0f), //y decodeX(2.0f) - decodeX(1.0f), //width decodeY(2.0f) - decodeY(1.0f)); //height return rect; } }
⏎ javax/swing/plaf/nimbus/ToolTipPainter.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, 196755👍, 5💬
Popular Posts:
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
The JMX technology provides the tools for building distributed, Web-based, modular and dynamic solut...