org.freehep.graphicsio
Class ImageGraphicsIO
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
- All Implemented Interfaces:
- VectorGraphicsConstants
- Direct Known Subclasses:
- GIFGraphics2D, JPGGraphics2D, PNGGraphics2D, PPMGraphics2D
- public abstract class ImageGraphicsIO
- extends PixelGraphics2D
Abstract class for generating bitmap outputs from an image.
- Version:
- $Id: ImageGraphicsIO.java,v 1.2 2002/09/04 21:59:39 duns Exp $
- Author:
- Mark Donszelmann
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 |
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 |
os
protected OutputStream os
image
protected BufferedImage image
ImageGraphicsIO
protected ImageGraphicsIO(OutputStream os,
Dimension size)
ImageGraphicsIO
protected ImageGraphicsIO(OutputStream os,
Component component)
ImageGraphicsIO
protected ImageGraphicsIO(ImageGraphicsIO graphics)
create
public abstract Graphics create()
- Overrides:
create
in class PixelGraphics2D
create
public abstract Graphics create(double x,
double y,
double width,
double height)
- Overrides:
create
in class PixelGraphics2D
startExport
public void startExport()
- Overrides:
startExport
in class PixelGraphics2D
endExport
public void endExport()
- Overrides:
endExport
in class PixelGraphics2D
write
public abstract void write()
throws IOException
IOException
closeStream
public void closeStream()
throws IOException
IOException
handleException
protected void handleException(Exception exception)
- Handles an exception which has been caught. Dispatches
exception to writeWarning for UnsupportedOperationExceptions
and writeError for others
- Parameters:
exception
- to be handled
generateThumbnail
public static Image generateThumbnail(Component component,
int width,
int height)
Copyright © 2000-2002 FreeHEP, All Rights Reserved.