home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / java2d / HeadlessGraphicsEnvironment.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.3 KB  |  67 lines

  1. package sun.java2d;
  2.  
  3. import java.awt.Font;
  4. import java.awt.Graphics2D;
  5. import java.awt.GraphicsDevice;
  6. import java.awt.GraphicsEnvironment;
  7. import java.awt.HeadlessException;
  8. import java.awt.Point;
  9. import java.awt.Rectangle;
  10. import java.awt.image.BufferedImage;
  11. import java.util.Locale;
  12. import sun.awt.FontConfiguration;
  13.  
  14. public class HeadlessGraphicsEnvironment extends GraphicsEnvironment implements FontSupport {
  15.    // $FF: renamed from: ge java.awt.GraphicsEnvironment
  16.    private GraphicsEnvironment field_0;
  17.    private FontSupport fontSupport;
  18.  
  19.    public HeadlessGraphicsEnvironment(GraphicsEnvironment var1) {
  20.       this.field_0 = var1;
  21.       if (var1 instanceof FontSupport) {
  22.          this.fontSupport = (FontSupport)var1;
  23.       }
  24.  
  25.    }
  26.  
  27.    public GraphicsDevice[] getScreenDevices() throws HeadlessException {
  28.       throw new HeadlessException();
  29.    }
  30.  
  31.    public GraphicsDevice getDefaultScreenDevice() throws HeadlessException {
  32.       throw new HeadlessException();
  33.    }
  34.  
  35.    public Point getCenterPoint() throws HeadlessException {
  36.       throw new HeadlessException();
  37.    }
  38.  
  39.    public Rectangle getMaximumWindowBounds() throws HeadlessException {
  40.       throw new HeadlessException();
  41.    }
  42.  
  43.    public Graphics2D createGraphics(BufferedImage var1) {
  44.       return this.field_0.createGraphics(var1);
  45.    }
  46.  
  47.    public Font[] getAllFonts() {
  48.       return this.field_0.getAllFonts();
  49.    }
  50.  
  51.    public String[] getAvailableFontFamilyNames() {
  52.       return this.field_0.getAvailableFontFamilyNames();
  53.    }
  54.  
  55.    public String[] getAvailableFontFamilyNames(Locale var1) {
  56.       return this.field_0.getAvailableFontFamilyNames(var1);
  57.    }
  58.  
  59.    public FontConfiguration getFontConfiguration() {
  60.       return this.fontSupport != null ? this.fontSupport.getFontConfiguration() : null;
  61.    }
  62.  
  63.    public GraphicsEnvironment getSunGraphicsEnvironment() {
  64.       return this.field_0;
  65.    }
  66. }
  67.