public class ValueGraphElements extends RectangularGraphElement
height, width, x, y| Constructor and Description |
|---|
ValueGraphElements(int x,
int y,
int width,
int height,
int hightlightValue,
int[] values,
int maxValue,
GraphConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2d)
Draw the element onto a Graphics2D.
|
ValueGraphElement |
getElement(int i)
return the i'th ValueGraphElement
|
int |
getHighlightValue() |
int[] |
getRawValues() |
getBoundingRectangle, getHeight, getWidthpublic ValueGraphElements(int x,
int y,
int width,
int height,
int hightlightValue,
int[] values,
int maxValue,
GraphConfiguration config)
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 Graphpublic ValueGraphElement getElement(int i)
i - the index of the element to returnpublic void draw(Graphics2D g2d)
GraphElementg2d - the Graphics2D onto which the element should be drawn.public int getHighlightValue()
public int[] getRawValues()
Copyright © 2005–2017 IIPC. All rights reserved.