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 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
⏎ sun/awt/image/OffScreenImage.java
/*
* Copyright (c) 1996, 2007, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.awt.image;
import java.awt.Component;
import java.awt.Color;
import java.awt.SystemColor;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsEnvironment;
import java.awt.image.BufferedImage;
import java.awt.image.ImageProducer;
import java.awt.image.ColorModel;
import java.awt.image.WritableRaster;
import sun.java2d.SunGraphics2D;
import sun.java2d.SurfaceData;
/**
* This is a special variant of BufferedImage that keeps a reference to
* a Component. The Component's foreground and background colors and
* default font are used as the defaults for this image.
*/
public class OffScreenImage extends BufferedImage {
protected Component c;
private OffScreenImageSource osis;
private Font defaultFont;
/**
* Constructs an OffScreenImage given a color model and tile,
* for offscreen rendering to be used with a given component.
* The component is used to obtain the foreground color, background
* color and font.
*/
public OffScreenImage(Component c, ColorModel cm, WritableRaster raster,
boolean isRasterPremultiplied)
{
super(cm, raster, isRasterPremultiplied, null);
this.c = c;
initSurface(raster.getWidth(), raster.getHeight());
}
public Graphics getGraphics() {
return createGraphics();
}
public Graphics2D createGraphics() {
if (c == null) {
GraphicsEnvironment env =
GraphicsEnvironment.getLocalGraphicsEnvironment();
return env.createGraphics(this);
}
Color bg = c.getBackground();
if (bg == null) {
bg = SystemColor.window;
}
Color fg = c.getForeground();
if (fg == null) {
fg = SystemColor.windowText;
}
Font font = c.getFont();
if (font == null) {
if (defaultFont == null) {
defaultFont = new Font("Dialog", Font.PLAIN, 12);
}
font = defaultFont;
}
return new SunGraphics2D(SurfaceData.getPrimarySurfaceData(this),
fg, bg, font);
}
private void initSurface(int width, int height) {
Graphics2D g2 = createGraphics();
try {
g2.clearRect(0, 0, width, height);
} finally {
g2.dispose();
}
}
public ImageProducer getSource() {
if (osis == null) {
osis = new OffScreenImageSource(this);
}
return osis;
}
}
⏎ sun/awt/image/OffScreenImage.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, ≈889🔥, 5💬
Popular Posts:
Where Can I get source code files of jsse.jar? You can get source code files of jsse.jar (JSSE) from...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What JAR files are required to run sax\Counter.java provided in the Apache Xerces package? You can f...
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 download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...