1 17 18 19 20 package org.apache.fop.svg; 21 22 import java.awt.GraphicsDevice ; 23 import java.awt.GraphicsConfiguration ; 24 import java.awt.GraphicsConfigTemplate ; 25 26 32 class PDFGraphicsDevice extends GraphicsDevice { 33 34 37 protected GraphicsConfiguration gc; 38 39 44 PDFGraphicsDevice(PDFGraphicsConfiguration gc) { 45 this.gc = gc; 46 } 47 48 54 public GraphicsConfiguration getBestConfiguration( 55 GraphicsConfigTemplate gct) { 56 return gc; 57 } 58 59 64 public GraphicsConfiguration[] getConfigurations() { 65 return new GraphicsConfiguration[]{ gc }; 66 } 67 68 73 public GraphicsConfiguration getDefaultConfiguration() { 74 return gc; 75 } 76 77 82 public String getIDstring() { 83 return toString(); 84 } 85 86 91 public int getType() { 92 return GraphicsDevice.TYPE_PRINTER; 93 } 94 95 } 96 97 | Popular Tags |