org.archive.wayback.util.graph
Class RegionGraphElement
java.lang.Object
org.archive.wayback.util.graph.RectangularGraphElement
org.archive.wayback.util.graph.RegionGraphElement
- All Implemented Interfaces:
- GraphElement
public class RegionGraphElement
- extends RectangularGraphElement
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 Graphy - the y coordinate for the region, in the global coordinate space
of the containing Graphwidth - the width of this region, in pixelsheight - the height of this region, in pixelsdata - the data to use for this regionconfig - the GraphConfiguration for this Graph
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.