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:
JRE 8 rt.jar - javax.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the javax.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ javax/swing/colorchooser/ColorModelHSV.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 ColorModelHSV extends ColorModel { ColorModelHSV() { super("hsv", "Hue", "Saturation", "Value", "Transparency"); // NON-NLS: components } @Override void setColor(int color, float[] space) { super.setColor(color, space); RGBtoHSV(space, space); space[3] = 1.0f - space[3]; } @Override int getColor(float[] space) { space[3] = 1.0f - space[3]; HSVtoRGB(space, space); return super.getColor(space); } @Override int getMaximum(int index) { return (index == 0) ? 360 : 100; } @Override float getDefault(int index) { return (index == 0) ? -1.0f : 1.0f; } /** * Converts HSV components of a color to a set of RGB components. * * @param hsv a float array with length equal to * the number of HSV 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[] HSVtoRGB(float[] hsv, float[] rgb) { if (rgb == null) { rgb = new float[3]; } float hue = hsv[0]; float saturation = hsv[1]; float value = hsv[2]; rgb[0] = value; rgb[1] = value; rgb[2] = value; if (saturation > 0.0f) { hue = (hue < 1.0f) ? hue * 6.0f : 0.0f; int integer = (int) hue; float f = hue - (float) integer; switch (integer) { case 0: rgb[1] *= 1.0f - saturation * (1.0f - f); rgb[2] *= 1.0f - saturation; break; case 1: rgb[0] *= 1.0f - saturation * f; rgb[2] *= 1.0f - saturation; break; case 2: rgb[0] *= 1.0f - saturation; rgb[2] *= 1.0f - saturation * (1.0f - f); break; case 3: rgb[0] *= 1.0f - saturation; rgb[1] *= 1.0f - saturation * f; break; case 4: rgb[0] *= 1.0f - saturation * (1.0f - f); rgb[1] *= 1.0f - saturation; break; case 5: rgb[1] *= 1.0f - saturation; rgb[2] *= 1.0f - saturation * f; break; } } return rgb; } /** * Converts RGB components of a color to a set of HSV components. * * @param rgb a float array with length of at least 3 * that contains RGB components of a color * @param hsv a float array with length equal to * the number of HSV components * @return a float array that contains HSV components */ private static float[] RGBtoHSV(float[] rgb, float[] hsv) { if (hsv == null) { hsv = new float[3]; } float max = ColorModelHSL.max(rgb[0], rgb[1], rgb[2]); float min = ColorModelHSL.min(rgb[0], rgb[1], rgb[2]); float saturation = max - min; if (saturation > 0.0f) { saturation /= max; } hsv[0] = ColorModelHSL.getHue(rgb[0], rgb[1], rgb[2], max, min); hsv[1] = saturation; hsv[2] = max; return hsv; } }
⏎ javax/swing/colorchooser/ColorModelHSV.java
Or download all of them as a single archive file:
File name: jre-rt-javax-1.8.0_191-src.zip File size: 5381005 bytes Release date: 2018-10-28 Download
⇒ JRE 8 rt.jar - org.* Package Source Code
2024-03-15, 213474👍, 6💬
Popular Posts:
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
What Is poi-contrib-3.5.jar? poi-contrib-3.5.jar is one of the JAR files for Apache POI 3.5, which p...