public class SvgRenderer extends java.lang.Object implements DataRenderer
DataRenderer.TextAlign
Constructor and Description |
---|
SvgRenderer(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsFloatPolylines() |
void |
beginClipping(float x,
float y,
float w,
float h) |
void |
beginLineGraphics(float width,
java.awt.Color color) |
void |
beginPlot(float width,
float height,
boolean antialiasing) |
void |
beginSolidGraphics(java.awt.Color color) |
void |
beginTextGraphics(float fontSize,
java.awt.Color color) |
void |
drawCircle(float x,
float y,
float size) |
void |
drawLine(float x1,
float y1,
float x2,
float y2) |
void |
drawPolyline(float[] xvals,
float[] yvals,
int cnt) |
void |
drawPolyline(int[] xvals,
int[] yvals,
int cnt) |
void |
drawRect(float x,
float y,
float w,
float h) |
void |
drawText(java.lang.String text,
float x,
float y,
DataRenderer.TextAlign halign) |
void |
endClipping() |
void |
endGraphics() |
void |
endPlot() |
public SvgRenderer(java.io.File file) throws java.io.IOException
java.io.IOException
public void beginPlot(float width, float height, boolean antialiasing)
beginPlot
in interface DataRenderer
public void endPlot()
endPlot
in interface DataRenderer
public void beginLineGraphics(float width, java.awt.Color color)
beginLineGraphics
in interface DataRenderer
public void beginSolidGraphics(java.awt.Color color)
beginSolidGraphics
in interface DataRenderer
public void drawCircle(float x, float y, float size)
drawCircle
in interface DataRenderer
public void beginTextGraphics(float fontSize, java.awt.Color color)
beginTextGraphics
in interface DataRenderer
public void drawLine(float x1, float y1, float x2, float y2)
drawLine
in interface DataRenderer
public void drawRect(float x, float y, float w, float h)
drawRect
in interface DataRenderer
public void drawText(java.lang.String text, float x, float y, DataRenderer.TextAlign halign)
drawText
in interface DataRenderer
public boolean allowsFloatPolylines()
allowsFloatPolylines
in interface DataRenderer
public void drawPolyline(int[] xvals, int[] yvals, int cnt)
drawPolyline
in interface DataRenderer
public void drawPolyline(float[] xvals, float[] yvals, int cnt)
drawPolyline
in interface DataRenderer
public void endGraphics()
endGraphics
in interface DataRenderer
public void beginClipping(float x, float y, float w, float h)
beginClipping
in interface DataRenderer
public void endClipping()
endClipping
in interface DataRenderer