Vector Graphics, 2.4

org.freehep.graphicsio.ps
Class PSGraphics2D

java.lang.Object
  extended by java.awt.Graphics
      extended by java.awt.Graphics2D
          extended by org.freehep.graphics2d.VectorGraphics
              extended by org.freehep.graphics2d.AbstractVectorGraphics
                  extended by org.freehep.graphicsio.VectorGraphicsIO
                      extended by org.freehep.graphicsio.AbstractVectorGraphicsIO
                          extended by org.freehep.graphicsio.ps.AbstractPSGraphics2D
                              extended by org.freehep.graphicsio.ps.PSGraphics2D
All Implemented Interfaces:
FontUtilities.ShowString, VectorGraphicsConstants, MultiPageDocument

public class PSGraphics2D
extends AbstractPSGraphics2D
implements MultiPageDocument

Version:
$Id: freehep-graphicsio-ps/src/main/java/org/freehep/graphicsio/ps/PSGraphics2D.java bed5e3a39f35 2007/09/10 18:13:00 duns $
Author:
Charles Loomis, Mark Donszelmann

Field Summary
 
Fields inherited from class org.freehep.graphicsio.ps.AbstractPSGraphics2D
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_AS
 
Fields inherited from class org.freehep.graphicsio.AbstractVectorGraphicsIO
CLIP, EMIT_ERRORS, EMIT_WARNINGS, TEXT_AS_SHAPES
 
Fields inherited from interface org.freehep.graphics2d.VectorGraphicsConstants
NUMBER_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
 
Constructor Summary
  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)
           
 
Method Summary
 void closePage()
           
 Graphics create()
           
 Graphics create(double x, double y, double width, double height)
           
protected  void init(OutputStream os)
           
 boolean isMultiPage()
           
 void openPage(Component component)
           
 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()
           
 
Methods inherited from class org.freehep.graphicsio.ps.AbstractPSGraphics2D
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, writeWidth
 
Methods inherited from class org.freehep.graphicsio.AbstractVectorGraphicsIO
addRenderingHints, 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, writeWarning
 
Methods inherited from class org.freehep.graphicsio.VectorGraphicsIO
copyResourceTo, copyResourceTo
 
Methods inherited from class org.freehep.graphics2d.AbstractVectorGraphics
clearRect, 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, translate
 
Methods inherited from class org.freehep.graphics2d.VectorGraphics
create, create, fill, getSymbol, getTextAlignment, getXalignment, getYalignment
 
Methods inherited from class java.awt.Graphics2D
draw3DRect, fill3DRect
 
Methods inherited from class java.awt.Graphics
drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipRect, getFontMetrics, hitClip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.freehep.graphicsio.MultiPageDocument
setFooter, setHeader
 

Constructor Detail

PSGraphics2D

public PSGraphics2D(File file,
                    Dimension size)
             throws FileNotFoundException
Throws:
FileNotFoundException

PSGraphics2D

public PSGraphics2D(File file,
                    Component component)
             throws FileNotFoundException
Throws:
FileNotFoundException

PSGraphics2D

public PSGraphics2D(OutputStream os,
                    Dimension size)

PSGraphics2D

public PSGraphics2D(OutputStream os,
                    Component component)

PSGraphics2D

protected PSGraphics2D(PSGraphics2D graphics,
                       boolean doRestoreOnDispose)
Method Detail

init

protected void init(OutputStream os)
Overrides:
init in class AbstractPSGraphics2D

setMultiPage

public void setMultiPage(boolean multiPage)
Specified by:
setMultiPage in interface MultiPageDocument

isMultiPage

public boolean isMultiPage()
Specified by:
isMultiPage in interface MultiPageDocument

openPage

public void openPage(Component component)
              throws IOException
Specified by:
openPage in interface MultiPageDocument
Throws:
IOException

openPage

public void openPage(Dimension size,
                     String title)
              throws IOException
Specified by:
openPage in interface MultiPageDocument
Throws:
IOException

openPage

protected void openPage(Dimension size,
                        String title,
                        Component component)
Overrides:
openPage in class AbstractPSGraphics2D

closePage

public void closePage()
Specified by:
closePage in interface MultiPageDocument

writeHeader

public void writeHeader()
                 throws IOException
Description copied from class: AbstractPSGraphics2D
Write out the header of this EPS file.

Overrides:
writeHeader in class AbstractPSGraphics2D
Throws:
IOException

writeTrailer

public void writeTrailer()
                  throws IOException
Overrides:
writeTrailer in class AbstractPSGraphics2D
Throws:
IOException

create

public Graphics create()
Specified by:
create in class VectorGraphics

create

public Graphics create(double x,
                       double y,
                       double width,
                       double height)
Specified by:
create in class VectorGraphics

Vector Graphics, 2.4

Copyright © 2014. All rights reserved.