public abstract class ImageWorker extends Object
Graphics2D
. To use it the construct should build it and call
setG2d(Graphics2D)
when finished.Constructor and Description |
---|
ImageWorker() |
Modifier and Type | Method and Description |
---|---|
protected void |
clip(int x,
int y,
int width,
int height) |
protected void |
dispose() |
protected void |
drawLine(int x1,
int y1,
int x2,
int y2,
Paint paint,
Stroke stroke) |
protected void |
drawPolyline(double[] x,
double[] y,
Paint paint,
Stroke stroke) |
protected void |
drawString(String text,
int x,
int y,
Font font,
Paint paint) |
protected void |
fillPolygon(double[] x,
double[] yBottom,
double[] yTop,
Paint paint) |
protected void |
fillPolygon(double[] x,
double yBottom,
double[] yTop,
Paint paint) |
protected void |
fillRect(int x,
int y,
int width,
int height,
Paint paint) |
protected double |
getFontAscent(Font font) |
protected double |
getFontHeight(Font font) |
protected byte[] |
getImageBytes() |
protected double |
getStringWidth(String text,
Font font) |
protected void |
loadImage(RrdGraphDef.ImageSource imageSource,
int x,
int y,
int w,
int h) |
protected abstract void |
makeImage(OutputStream os) |
protected void |
makeImage(Path path) |
protected void |
reset() |
protected abstract void |
reset(Graphics2D g2d)
reset the dimensions of the
Graphics2D |
protected abstract void |
resize(int width,
int height) |
protected void |
saveImage(String path) |
protected void |
setAntiAliasing(boolean enable) |
protected void |
setG2d(Graphics2D g2d) |
protected void |
setTextAntiAliasing(boolean enable) |
protected void |
transform(int x,
int y,
double angle) |
protected void setG2d(Graphics2D g2d)
protected abstract void resize(int width, int height)
protected void clip(int x, int y, int width, int height)
protected void transform(int x, int y, double angle)
protected void reset()
protected abstract void reset(Graphics2D g2d)
Graphics2D
protected void fillRect(int x, int y, int width, int height, Paint paint)
protected void fillPolygon(double[] x, double yBottom, double[] yTop, Paint paint)
protected void fillPolygon(double[] x, double[] yBottom, double[] yTop, Paint paint)
protected double getFontAscent(Font font)
protected double getFontHeight(Font font)
protected void setAntiAliasing(boolean enable)
protected void setTextAntiAliasing(boolean enable)
protected void loadImage(RrdGraphDef.ImageSource imageSource, int x, int y, int w, int h) throws IOException
IOException
protected void dispose()
protected void makeImage(Path path) throws IOException
IOException
protected abstract void makeImage(OutputStream os) throws IOException
IOException
protected void saveImage(String path) throws IOException
IOException
protected byte[] getImageBytes() throws IOException
IOException