org.archive.wayback.util.graph
Class Graph

java.lang.Object
  extended by org.archive.wayback.util.graph.RectangularGraphElement
      extended by org.archive.wayback.util.graph.Graph
All Implemented Interfaces:
GraphElement

public class Graph
extends RectangularGraphElement

Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.util.graph.RectangularGraphElement
height, width, x, y
 
Constructor Summary
Graph(int width, int height, RegionData[] data, GraphConfiguration config)
           
 
Method Summary
 void draw(Graphics2D g2d)
          Draw the element onto a Graphics2D.
 RegionGraphElement[] getRegions()
           
 
Methods inherited from class org.archive.wayback.util.graph.RectangularGraphElement
getBoundingRectangle, getHeight, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph(int width,
             int height,
             RegionData[] data,
             GraphConfiguration config)
Parameters:
width - the width of the graph
height - the height of the graph
data - the values to draw in the graph
config - the configuration to use when drawing the graph
Method Detail

getRegions

public RegionGraphElement[] getRegions()
Returns:
the RegionGraphElements for the graph

draw

public void draw(Graphics2D g2d)
Description copied from interface: GraphElement
Draw the element onto a Graphics2D.

Parameters:
g2d - the Graphics2D onto which the element should be drawn.


Copyright © 2005-2011 Internet Archive. All Rights Reserved.