Documentation of 'org.statcato.graph.GraphUtils' Java class
GraphUtils
org.statcato.graph

Class GraphUtils



  • public class GraphUtils
    extends java.lang.Object
    Utilities for graph generation and manipulation.
    Since:
    1.0
    See Also:
    org.jfree.chart
    • Constructor Summary

      Constructors 
      Constructor and Description
      GraphUtils() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static javax.swing.Icon createGraphImageLabel(JFreeChart plot) 
      static void drawCharts(java.awt.Graphics2D g, java.util.ArrayList<JFreeChart> charts, int x, int y, int width, int height)
      Draws the charts on the given Java@d graphics device, with two charts per row at the given position.
      static java.awt.image.BufferedImage joinBufferedChartImages(java.util.ArrayList<JFreeChart> charts)
      Returns a BufferedImage that is the result of joining a list of charts
      static void writeBufferedImageAsPNG(java.io.OutputStream out, java.awt.image.BufferedImage image, int width, int height)
      Writes a chart to an output stream in PNG format.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphUtils

        public GraphUtils()
    • Method Detail

      • createGraphImageLabel

        public static javax.swing.Icon createGraphImageLabel(JFreeChart plot)
      • joinBufferedChartImages

        public static java.awt.image.BufferedImage joinBufferedChartImages(java.util.ArrayList<JFreeChart> charts)
        Returns a BufferedImage that is the result of joining a list of charts
        Parameters:
        charts - an ArrayList of JFreeChart objects
        Returns:
        BufferedImage
      • drawCharts

        public static void drawCharts(java.awt.Graphics2D g,
                                      java.util.ArrayList<JFreeChart> charts,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
        Draws the charts on the given Java@d graphics device, with two charts per row at the given position.
        Parameters:
        g - graphics device
        charts - list of charts
        x - x-position
        y - y-position
        width - width
        height - height
      • writeBufferedImageAsPNG

        public static void writeBufferedImageAsPNG(java.io.OutputStream out,
                                                   java.awt.image.BufferedImage image,
                                                   int width,
                                                   int height)
                                            throws java.io.IOException
        Writes a chart to an output stream in PNG format.
        Parameters:
        out - the output stream (null not permitted).
        image - the BufferedImage object
        width - the image width.
        height - the image height.
        Throws:
        java.io.IOException - if there are any I/O errors.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.