Package org.rrd4j.graph
Class ImageWorker
java.lang.Object
org.rrd4j.graph.ImageWorker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
clip
(int x, int y, int width, int height) (package private) void
dispose()
(package private) void
(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
(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
-