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
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)
-
Constructor Details
-
ImageWorker
ImageWorker(int width, int height)
-
-
Method Details
-
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
-
fillPolygon
-
fillPolygon
-
fillPolygon
-
drawLine
-
drawPolyline
-
drawPolyline
-
drawString
-
getFontAscent
-
getFontHeight
-
getStringWidth
-
setAntiAliasing
void setAntiAliasing(boolean enable) -
setTextAntiAliasing
void setTextAntiAliasing(boolean enable) -
dispose
void dispose() -
makeImage
- Throws:
IOException
-
saveImage
- Throws:
IOException
-
getImageBytes
- Throws:
IOException
-
loadImage
- Throws:
IOException
-