org.archive.wayback.util.graph
Class RegionGraphElement

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

public class RegionGraphElement
extends RectangularGraphElement

Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.util.graph.RectangularGraphElement
height, width, x, y
 
Constructor Summary
RegionGraphElement(int x, int y, int width, int height, RegionData data, GraphConfiguration config)
           
 
Method Summary
 void draw(Graphics2D g2d)
          Draw the element onto a Graphics2D.
 RegionData getData()
           
 
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

RegionGraphElement

public RegionGraphElement(int x,
                          int y,
                          int width,
                          int height,
                          RegionData data,
                          GraphConfiguration config)
Parameters:
x - the x coordinate for the region, in the global coordinate space of the containing Graph
y - the y coordinate for the region, in the global coordinate space of the containing Graph
width - the width of this region, in pixels
height - the height of this region, in pixels
data - the data to use for this region
config - the GraphConfiguration for this Graph
Method Detail

getData

public RegionData getData()
Returns:
the RegionData for this region

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.