org.archive.wayback.util.graph
Class ValueGraphElements
java.lang.Object
org.archive.wayback.util.graph.RectangularGraphElement
org.archive.wayback.util.graph.ValueGraphElements
- All Implemented Interfaces:
- GraphElement
public class ValueGraphElements
- extends RectangularGraphElement
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueGraphElements
public ValueGraphElements(int x,
int y,
int width,
int height,
int hightlightValue,
int[] values,
int maxValue,
GraphConfiguration config)
- Parameters:
x - the rectangles x in the global coordinate spacey - the rectangles y in the global coordinate spacewidth - the rectangles widthheight - the rectangles heighthightlightValue - the index of the value to highlightvalues - array of int values, each must be 0-15maxValue - the global maximum value across all elements in the Graphconfig - the configuration for the Graph
getElement
public ValueGraphElement getElement(int i)
- return the i'th ValueGraphElement
- Parameters:
i - the index of the element to return
- Returns:
- the ValueGraphElement at index i
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.
getHighlightValue
public int getHighlightValue()
- Returns:
- the index of the highlighted value
getRawValues
public int[] getRawValues()
- Returns:
- the raw int values for the graph
Copyright © 2005-2011 Internet Archive. All Rights Reserved.