public class RectItem<T> extends AbstractColoredItem
bbColor, bgColor, fgColoranchor, bounds| Constructor and Description |
|---|
RectItem(T data,
double centerX,
double centerY,
double width,
double height) |
RectItem(T data,
double centerX,
double centerY,
double width,
double height,
Color fgColor) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2d) |
boolean |
equals(Object obj) |
T |
getData() |
int |
hashCode() |
void |
setData(T data) |
protected Rectangle2D |
updateBounds() |
getBbColor, getBgColor, getFgColor, setBbColor, setBgColor, setFgColorgetBounds, getPosition, setPosition, setPositionpublic RectItem(T data, double centerX, double centerY, double width, double height)
public void draw(Graphics2D g2d)
draw in interface VisualItemdraw in class AbstractVisualItemprotected Rectangle2D updateBounds()
updateBounds in class AbstractVisualItempublic void setData(T data)
public T getData()
Copyright © 2012. All Rights Reserved.