public abstract class RectangularGraphElement extends Object implements GraphElement
| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected int |
width |
protected int |
x |
protected int |
y |
| Constructor and Description |
|---|
RectangularGraphElement(int x,
int y,
int width,
int height)
Construct a new RectangularGraphElement with the supplied values
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBoundingRectangle() |
int |
getHeight() |
int |
getWidth() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawprotected int x
protected int y
protected int width
protected int height
public RectangularGraphElement(int x,
int y,
int width,
int height)
x - the rectangles x in the global coordinate spacey - the rectangles y in the global coordinate spacewidth - the rectangles widthheight - the rectangles heightpublic int getWidth()
public int getHeight()
public Rectangle getBoundingRectangle()
Copyright © 2005–2015 IIPC. All rights reserved.