public class RegionGraphElement extends RectangularGraphElement
height, width, x, y
Constructor and Description |
---|
RegionGraphElement(int x,
int y,
int width,
int height,
RegionData data,
GraphConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2d)
Draw the element onto a Graphics2D.
|
RegionData |
getData() |
getBoundingRectangle, getHeight, getWidth
public RegionGraphElement(int x, int y, int width, int height, RegionData data, GraphConfiguration config)
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 Graphpublic RegionData getData()
public void draw(Graphics2D g2d)
GraphElement
g2d
- the Graphics2D onto which the element should be drawn.Copyright © 2005–2015 IIPC. All rights reserved.