public class ValueGraphElement extends RectangularGraphElement
height, width, x, y
Constructor and Description |
---|
ValueGraphElement(int x,
int y,
int width,
int height,
boolean highlighted,
GraphConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2d)
Draw the element onto a Graphics2D.
|
getBoundingRectangle, getHeight, getWidth
public ValueGraphElement(int x, int y, int width, int height, boolean highlighted, GraphConfiguration config)
x
- the rectangles x in the global coordinate spacey
- the rectangles y in the global coordinate spacewidth
- the rectangles widthheight
- the rectangles heighthighlighted
- true if this value is highlightedconfig
- reference to the configuration for the graphpublic void draw(Graphics2D g2d)
GraphElement
g2d
- the Graphics2D onto which the element should be drawn.Copyright © 2005–2015 IIPC. All rights reserved.