FreeHEP API
Version v1.1

org.freehep.graphicsio.png
Class PNGGraphics2D

java.lang.Object
  |
  +--java.awt.Graphics
        |
        +--java.awt.Graphics2D
              |
              +--org.freehep.graphics2d.VectorGraphics
                    |
                    +--org.freehep.graphics2d.AbstractVectorGraphics
                          |
                          +--org.freehep.graphics2d.PixelGraphics2D
                                |
                                +--org.freehep.graphicsio.ImageGraphicsIO
                                      |
                                      +--org.freehep.graphicsio.png.PNGGraphics2D
All Implemented Interfaces:
VectorGraphicsConstants

public class PNGGraphics2D
extends ImageGraphicsIO

Version:
$Id: PNGGraphics2D.java,v 1.3 2002/09/04 21:59:57 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected static int pngCompressionLevel
           
protected static int pngFilter
           
 
Fields inherited from class org.freehep.graphicsio.ImageGraphicsIO
image, os
 
Fields inherited from class org.freehep.graphics2d.PixelGraphics2D
hostGraphics, lineWidth, resolution, tagHandler
 
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
  PNGGraphics2D(File file, Component component)
           
  PNGGraphics2D(File file, Dimension size)
           
  PNGGraphics2D(OutputStream os, Component component)
           
  PNGGraphics2D(OutputStream os, Dimension size)
           
protected PNGGraphics2D(PNGGraphics2D graphics)
           
 
Method Summary
 Graphics create()
           
 Graphics create(double x, double y, double width, double height)
           
 void write()
           
 
Methods inherited from class org.freehep.graphicsio.ImageGraphicsIO
closeStream, endExport, generateThumbnail, handleException, startExport
 
Methods inherited from class org.freehep.graphics2d.PixelGraphics2D
addRenderingHints, clearRect, clearRect, clip, clipRect, clipRect, copyArea, createShape, dispose, draw, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawString, drawString, drawString, drawString, drawString, drawString, drawString, drawString, fill, fillAndDraw, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, getClip, getClipBounds, getClipBounds, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, printComment, rotate, rotate, scale, setBackground, setClip, setClip, setClip, setColor, setComposite, setFont, setHostGraphics, setLineWidth, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, toString, transform, translate, translate
 
Methods inherited from class org.freehep.graphics2d.AbstractVectorGraphics
createShape, drawArc, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRoundRect, drawRoundRect, drawString, drawString, drawSymbol, drawSymbol, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, fillRoundRect, fillSymbol, fillSymbol, getBackground, getColor, getColorMode, getCreator, getPaint, getPrintColor, isDeviceIndependent, setColorMode, setCreator, setDeviceIndependent, setLineWidth
 
Methods inherited from class org.freehep.graphics2d.VectorGraphics
create, create, getSymbol, getTextAlignment, getXalignment, getYalignment
 
Methods inherited from class java.awt.Graphics2D
draw3DRect, fill3DRect
 
Methods inherited from class java.awt.Graphics
drawBytes, drawChars, finalize, getClipRect, getFontMetrics, hitClip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pngFilter

protected static int pngFilter

pngCompressionLevel

protected static int pngCompressionLevel
Constructor Detail

PNGGraphics2D

public PNGGraphics2D(File file,
                     Dimension size)
              throws FileNotFoundException

PNGGraphics2D

public PNGGraphics2D(File file,
                     Component component)
              throws FileNotFoundException

PNGGraphics2D

public PNGGraphics2D(OutputStream os,
                     Dimension size)

PNGGraphics2D

public PNGGraphics2D(OutputStream os,
                     Component component)

PNGGraphics2D

protected PNGGraphics2D(PNGGraphics2D graphics)
Method Detail

create

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

create

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

write

public void write()
           throws IOException
Specified by:
write in class ImageGraphicsIO
IOException

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.