org.jrobin.graph
Class RrdGraph

java.lang.Object
  extended by org.jrobin.graph.RrdGraph
All Implemented Interfaces:
RrdGraphConstants

public class RrdGraph
extends Object
implements RrdGraphConstants

Class which actually creates JRobin graphs (does the hard work).


Field Summary
 
Fields inherited from interface org.jrobin.graph.RrdGraphConstants
ALIGN_CENTER_MARKER, ALIGN_JUSTIFIED_MARKER, ALIGN_LEFT_MARKER, ALIGN_RIGHT_MARKER, COLOR_ARROW, COLOR_BACK, COLOR_CANVAS, COLOR_FONT, COLOR_FRAME, COLOR_GRID, COLOR_MGRID, COLOR_NAMES, COLOR_SHADEA, COLOR_SHADEB, DAY, DEFAULT_ARROW_COLOR, DEFAULT_BACK_COLOR, DEFAULT_BASE, DEFAULT_CANVAS_COLOR, DEFAULT_END, DEFAULT_FONT_COLOR, DEFAULT_FONT_NAME, DEFAULT_FRAME_COLOR, DEFAULT_GRID_COLOR, DEFAULT_HEIGHT, DEFAULT_IMAGE_FORMAT, DEFAULT_IMAGE_QUALITY, DEFAULT_MGRID_COLOR, DEFAULT_MONOSPACE_FONT_FILE, DEFAULT_PROPORTIONAL_FONT_FILE, DEFAULT_SHADEA_COLOR, DEFAULT_SHADEB_COLOR, DEFAULT_START, DEFAULT_UNITS_LENGTH, DEFAULT_WIDTH, FIRST_DAY_OF_WEEK, FRIDAY, GLUE_MARKER, GRID_STROKE, HOUR, IN_MEMORY_IMAGE, LEGEND_BOX, LEGEND_BOX_SPACE, LEGEND_INTERSPACING, LEGEND_LEADING, LEGEND_LEADING_SMALL, MARKERS, MINUTE, MONDAY, MONTH, NO_JUSTIFICATION_MARKER, PADDING_BOTTOM, PADDING_LEFT, PADDING_LEGEND, PADDING_PLOT, PADDING_RIGHT, PADDING_TITLE, PADDING_TOP, PADDING_VLABEL, SATURDAY, SECOND, SUNDAY, THURSDAY, TICK_STROKE, TUESDAY, VERTICAL_SPACING_MARKER, WEDNESDAY, WEEK, YEAR
 
Constructor Summary
RrdGraph(RrdGraphDef gdef)
          Creates graph from the corresponding RrdGraphDef object.
 
Method Summary
 RrdGraphInfo getRrdGraphInfo()
          Returns complete graph information in a single object.
 void render(Graphics g)
          Renders this graph onto graphing device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RrdGraph

public RrdGraph(RrdGraphDef gdef)
         throws IOException,
                RrdException
Creates graph from the corresponding RrdGraphDef object.

Parameters:
gdef - Graph definition
Throws:
IOException - Thrown in case of I/O error
RrdException - Thrown in case of JRobin related error
Method Detail

getRrdGraphInfo

public RrdGraphInfo getRrdGraphInfo()
Returns complete graph information in a single object.

Returns:
Graph information (width, height, filename, image bytes, etc...)

render

public void render(Graphics g)
Renders this graph onto graphing device

Parameters:
g - Graphics handle


Copyright 2003-2008. All Rights Reserved.