home *** CD-ROM | disk | FTP | other *** search
- package sun.java2d;
-
- import java.awt.Font;
- import java.awt.Graphics2D;
- import java.awt.GraphicsDevice;
- import java.awt.GraphicsEnvironment;
- import java.awt.HeadlessException;
- import java.awt.Point;
- import java.awt.Rectangle;
- import java.awt.image.BufferedImage;
- import java.util.Locale;
- import sun.awt.FontConfiguration;
-
- public class HeadlessGraphicsEnvironment extends GraphicsEnvironment implements FontSupport {
- // $FF: renamed from: ge java.awt.GraphicsEnvironment
- private GraphicsEnvironment field_0;
- private FontSupport fontSupport;
-
- public HeadlessGraphicsEnvironment(GraphicsEnvironment var1) {
- this.field_0 = var1;
- if (var1 instanceof FontSupport) {
- this.fontSupport = (FontSupport)var1;
- }
-
- }
-
- public GraphicsDevice[] getScreenDevices() throws HeadlessException {
- throw new HeadlessException();
- }
-
- public GraphicsDevice getDefaultScreenDevice() throws HeadlessException {
- throw new HeadlessException();
- }
-
- public Point getCenterPoint() throws HeadlessException {
- throw new HeadlessException();
- }
-
- public Rectangle getMaximumWindowBounds() throws HeadlessException {
- throw new HeadlessException();
- }
-
- public Graphics2D createGraphics(BufferedImage var1) {
- return this.field_0.createGraphics(var1);
- }
-
- public Font[] getAllFonts() {
- return this.field_0.getAllFonts();
- }
-
- public String[] getAvailableFontFamilyNames() {
- return this.field_0.getAvailableFontFamilyNames();
- }
-
- public String[] getAvailableFontFamilyNames(Locale var1) {
- return this.field_0.getAvailableFontFamilyNames(var1);
- }
-
- public FontConfiguration getFontConfiguration() {
- return this.fontSupport != null ? this.fontSupport.getFontConfiguration() : null;
- }
-
- public GraphicsEnvironment getSunGraphicsEnvironment() {
- return this.field_0;
- }
- }
-