Class ImageWorker

java.lang.Object
org.rrd4j.graph.ImageWorker

class ImageWorker extends Object
  • 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

      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)
    • drawLine

      void drawLine(int x1, int y1, int x2, int y2, Paint paint, Stroke stroke)
    • drawPolyline

      void drawPolyline(int[] x, int[] y, Paint paint, Stroke stroke)
    • drawPolyline

      void drawPolyline(double[] x, double[] y, Paint paint, Stroke stroke)
    • drawString

      void drawString(String text, int x, int y, Font font, Paint paint)
    • getFontAscent

      double getFontAscent(Font font)
    • getFontHeight

      double getFontHeight(Font font)
    • getStringWidth

      double getStringWidth(String text, 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