Package uk.ac.starlink.ttools.plot
Class FixedEpsGraphics2D
- java.lang.Object
-
- java.awt.Graphics
-
- java.awt.Graphics2D
-
- org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D
-
- uk.ac.starlink.ttools.plot.FixedEpsGraphics2D
-
public class FixedEpsGraphics2D extends org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D
Graphics2D implementation which can write to Encapsulated PostScript.This is a very slight modification of
net.sf.epsgraphics.EpsGraphics2D
which addresses some (apparent?) bugs in that class. The jibble library used to be GPL but is now released under a more restrictive (and expensive) license, so applying a fix to the original would be problematic.- Since:
- 27 Jul 2007
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description FixedEpsGraphics2D(java.lang.String title, java.io.OutputStream out, int xmin, int ymin, int xmax, int ymax)
Constructor with bounds.FixedEpsGraphics2D(org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D g2)
Clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Graphics
create()
void
setClip(java.awt.Shape clip)
-
Methods inherited from class org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D
addRenderingHints, clearRect, clip, clipRect, close, copyArea, create, dispose, draw, draw3DRect, drawArc, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, fill, fill3DRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, finalize, flush, getAccurateTextMode, getBackground, getClip, getClipBounds, getClipBounds, getColor, getColorDepth, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontMetrics, getFontRenderContext, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, hitClip, rotate, rotate, scale, setAccurateTextMode, setBackground, setClip, setColor, setColorDepth, setComposite, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, toString, transform, translate, translate
-
-
-
-
Constructor Detail
-
FixedEpsGraphics2D
public FixedEpsGraphics2D(java.lang.String title, java.io.OutputStream out, int xmin, int ymin, int xmax, int ymax) throws java.io.IOException
Constructor with bounds.- Parameters:
title
- titleout
- output stream - must be closed to complete plottingxmin
- lower X bound for bounding boxymin
- lower Y bound for bounding boxxmax
- upper X bound for bounding boxymax
- upper Y bound for bounding box- Throws:
java.io.IOException
-
FixedEpsGraphics2D
public FixedEpsGraphics2D(org.sourceforge.jlibeps.epsgraphics.EpsGraphics2D g2)
Clone constructor.- Parameters:
g2
- instance to copy
-
-