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/colorchooser/ColorModelCMYK.java
/* * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.colorchooser; final class ColorModelCMYK extends ColorModel { ColorModelCMYK() { super("cmyk", "Cyan", "Magenta", "Yellow", "Black", "Alpha"); // NON-NLS: components } @Override void setColor(int color, float[] space) { super.setColor(color, space); space[4] = space[3]; RGBtoCMYK(space, space); } @Override int getColor(float[] space) { CMYKtoRGB(space, space); space[3] = space[4]; return super.getColor(space); } /** * Converts CMYK components of a color to a set of RGB components. * * @param cmyk a float array with length equal to * the number of CMYK components * @param rgb a float array with length of at least 3 * that contains RGB components of a color * @return a float array that contains RGB components */ private static float[] CMYKtoRGB(float[] cmyk, float[] rgb) { if (rgb == null) { rgb = new float[3]; } rgb[0] = 1.0f + cmyk[0] * cmyk[3] - cmyk[3] - cmyk[0]; rgb[1] = 1.0f + cmyk[1] * cmyk[3] - cmyk[3] - cmyk[1]; rgb[2] = 1.0f + cmyk[2] * cmyk[3] - cmyk[3] - cmyk[2]; return rgb; } /** * Converts RGB components of a color to a set of CMYK components. * * @param rgb a float array with length of at least 3 * that contains RGB components of a color * @param cmyk a float array with length equal to * the number of CMYK components * @return a float array that contains CMYK components */ private static float[] RGBtoCMYK(float[] rgb, float[] cmyk) { if (cmyk == null) { cmyk = new float[4]; } float max = ColorModelHSL.max(rgb[0], rgb[1], rgb[2]); if (max > 0.0f) { cmyk[0] = 1.0f - rgb[0] / max; cmyk[1] = 1.0f - rgb[1] / max; cmyk[2] = 1.0f - rgb[2] / max; } else { cmyk[0] = 0.0f; cmyk[1] = 0.0f; cmyk[2] = 0.0f; } cmyk[3] = 1.0f - max; return cmyk; } }
⏎ javax/swing/colorchooser/ColorModelCMYK.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, 194694👍, 5💬
Popular Posts:
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...