Package org.rrd4j.graph
Class ImageWorker
- java.lang.Object
-
- org.rrd4j.graph.ImageWorker
-
class ImageWorker extends Object
-
-
Constructor Summary
Constructors Constructor Description ImageWorker(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
clip(int x, int y, int width, int height)
(package private) void
dispose()
(package private) void
drawLine(int x1, int y1, int x2, int y2, Paint paint, Stroke stroke)
(package private) void
drawPolyline(double[] x, double[] y, Paint paint, Stroke stroke)
(package private) void
drawPolyline(int[] x, int[] y, Paint paint, Stroke stroke)
(package private) void
drawString(String text, int x, int y, Font font, Paint paint)
(package private) void
fillPolygon(double[] x, double[] yBottom, double[] yTop, Paint paint)
(package private) void
fillPolygon(double[] x, double yBottom, double[] yTop, Paint paint)
(package private) void
fillPolygon(int[] x, int[] y, Paint paint)
(package private) void
fillRect(int x, int y, int width, int height, Paint paint)
(package private) double
getFontAscent(Font font)
(package private) double
getFontHeight(Font font)
(package private) InputStream
getImageBytes(ImageWriter writer, ImageWriteParam iwp)
(package private) double
getStringWidth(String text, Font font)
(package private) void
loadImage(RrdGraphDef.ImageSource imageSource, int x, int y, int w, int h)
(package private) void
makeImage(Object stream, ImageWriter writer, ImageWriteParam iwp)
(package private) void
reset()
(package private) void
resize(int width, int height)
(package private) InputStream
saveImage(String path, ImageWriter writer, ImageWriteParam iwp)
(package private) void
setAntiAliasing(boolean enable)
(package private) void
setTextAntiAliasing(boolean enable)
(package private) void
transform(int x, int y, double angle)
-
-
-
Method Detail
-
resize
void resize(int width, int height)
-
clip
void clip(int x, int y, int width, int height)
-
transform
void transform(int x, int y, double angle)
-
reset
void reset()
-
fillRect
void fillRect(int x, int y, int width, int height, Paint paint)
-
fillPolygon
void fillPolygon(int[] x, int[] y, Paint paint)
-
fillPolygon
void fillPolygon(double[] x, double yBottom, double[] yTop, Paint paint)
-
fillPolygon
void fillPolygon(double[] x, double[] yBottom, double[] yTop, Paint paint)
-
getFontAscent
double getFontAscent(Font font)
-
getFontHeight
double getFontHeight(Font font)
-
setAntiAliasing
void setAntiAliasing(boolean enable)
-
setTextAntiAliasing
void setTextAntiAliasing(boolean enable)
-
dispose
void dispose()
-
makeImage
void makeImage(Object stream, ImageWriter writer, ImageWriteParam iwp) throws IOException
- Throws:
IOException
-
saveImage
InputStream saveImage(String path, ImageWriter writer, ImageWriteParam iwp) throws IOException
- Throws:
IOException
-
getImageBytes
InputStream getImageBytes(ImageWriter writer, ImageWriteParam iwp) throws IOException
- Throws:
IOException
-
loadImage
void loadImage(RrdGraphDef.ImageSource imageSource, int x, int y, int w, int h) throws IOException
- Throws:
IOException
-
-