public class PSGraphics2D extends AbstractPSGraphics2D implements MultiPageDocument
BACKGROUND, BACKGROUND_COLOR, CUSTOM_PAGE_SIZE, EMBED_FONTS, EMBED_FONTS_AS, FIT_TO_PAGE, FOR, LEVEL_2, LEVEL_3, ORIENTATION, os, PAGE_MARGINS, PAGE_SIZE, PREVIEW, PREVIEW_BITS, ros, TITLE, version, WRITE_IMAGES_ASCLIP, EMIT_ERRORS, EMIT_WARNINGS, TEXT_AS_SHAPESNUMBER_OF_HORIZ_ALIGNMENTS, NUMBER_OF_SYMBOLS, NUMBER_OF_VERTICAL_ALIGNMENTS, SYMBOL_BOX, SYMBOL_CIRCLE, SYMBOL_CROSS, SYMBOL_DIAMOND, SYMBOL_DN_TRIANGLE, SYMBOL_HLINE, SYMBOL_PLUS, SYMBOL_STAR, SYMBOL_UP_TRIANGLE, SYMBOL_VLINE, TEXT_BASELINE, TEXT_BOTTOM, TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT, TEXT_TOP| Modifier | Constructor and Description | 
|---|---|
|   | PSGraphics2D(File file,
            Component component) | 
|   | PSGraphics2D(File file,
            Dimension size) | 
|   | PSGraphics2D(OutputStream os,
            Component component) | 
|   | PSGraphics2D(OutputStream os,
            Dimension size) | 
| protected  | PSGraphics2D(PSGraphics2D graphics,
            boolean doRestoreOnDispose) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | closePage()End the current page. | 
| Graphics | create() | 
| Graphics | create(double x,
      double y,
      double width,
      double height) | 
| protected void | init(OutputStream os) | 
| boolean | isMultiPage() | 
| void | openPage(Component component)Start the next page | 
| void | openPage(Dimension size,
        String title) | 
| protected void | openPage(Dimension size,
        String title,
        Component component) | 
| void | setMultiPage(boolean multiPage) | 
| void | writeHeader()Write out the header of this EPS file. | 
| void | writeTrailer()Called to write the trailing part of the output. | 
closeStream, copyArea, draw, fill, fillAndDraw, fixedPrecision, getDefaultProperties, getDeviceConfiguration, getPageSize, setClipEnabled, setFooter, setHeader, setPaintMode, setXORMode, showString, toString, writeBackground, writeCap, writeClip, writeComment, writeDash, writeFont, writeGraphicsRestore, writeGraphicsSave, writeImage, writeJoin, writeMiterLimit, writePaint, writePaint, writePaint, writePaint, writeSetClip, writeSetTransform, writeString, writeTransform, writeWidthaddRenderingHints, clearRect, clip, clipRect, clipRect, createShape, dispose, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawRenderableImage, drawRenderedImage, drawString, drawString, endExport, getClip, getClipBounds, getClipBounds, getComponent, getComposite, getFontMetrics, getFontRenderContext, getRenderingHint, getRenderingHints, getSize, getStroke, getTransform, handleException, overLine, printComment, resetClip, rotate, scale, setClip, setClip, setClip, setColor, setComposite, setFont, setPaint, setRenderingHint, setRenderingHints, setStroke, setTransform, shear, startExport, transform, translate, writeDash, writeError, writeGraphicsState, writeStroke, writeWarning, writeWarningcopyResourceTo, copyResourceToclearRect, createShape, drawArc, drawArc, drawLine, drawLine, drawOval, drawOval, drawPolygon, drawPolygon, drawPolyline, drawPolyline, drawRect, drawRect, drawRoundRect, drawRoundRect, drawString, drawString, drawString, drawString, drawString, drawString, drawString, drawString, drawSymbol, drawSymbol, drawSymbol, fillAndDrawSymbol, fillAndDrawSymbol, fillArc, fillArc, fillOval, fillOval, fillPolygon, fillPolygon, fillRect, fillRect, fillRoundRect, fillRoundRect, fillSymbol, fillSymbol, fillSymbol, getBackground, getColor, getColorMode, getCreator, getFont, getPaint, getPrintColor, getProperties, getProperty, getPropertyColor, getPropertyDimension, getPropertyDouble, getPropertyInsets, getPropertyInt, getPropertyRectangle, hit, initProperties, isDeviceIndependent, isProperty, rotate, setBackground, setColorMode, setCreator, setDeviceIndependent, setLineWidth, setLineWidth, setProperties, translatecreate, create, fill, getSymbol, getTextAlignment, getXalignment, getYalignmentdraw3DRect, fill3DRectdrawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipRect, getFontMetrics, hitClipclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetFooter, setHeaderpublic PSGraphics2D(File file, Dimension size) throws FileNotFoundException
FileNotFoundExceptionpublic PSGraphics2D(File file, Component component) throws FileNotFoundException
FileNotFoundExceptionpublic PSGraphics2D(OutputStream os, Dimension size)
public PSGraphics2D(OutputStream os, Component component)
protected PSGraphics2D(PSGraphics2D graphics, boolean doRestoreOnDispose)
protected void init(OutputStream os)
init in class AbstractPSGraphics2Dpublic void setMultiPage(boolean multiPage)
setMultiPage in interface MultiPageDocumentpublic boolean isMultiPage()
isMultiPage in interface MultiPageDocumentpublic void openPage(Component component) throws IOException
MultiPageDocumentopenPage in interface MultiPageDocumentIOExceptionpublic void openPage(Dimension size, String title) throws IOException
openPage in interface MultiPageDocumentIOExceptionprotected void openPage(Dimension size, String title, Component component)
openPage in class AbstractPSGraphics2Dpublic void closePage()
MultiPageDocumentclosePage in interface MultiPageDocumentpublic void writeHeader()
                 throws IOException
AbstractPSGraphics2DwriteHeader in class AbstractPSGraphics2DIOExceptionpublic void writeTrailer()
                  throws IOException
AbstractVectorGraphicsIOwriteTrailer in class AbstractPSGraphics2DIOExceptionpublic Graphics create()
create in class VectorGraphicspublic Graphics create(double x, double y, double width, double height)
create in class VectorGraphicsCopyright © 2014. All rights reserved.