O - the object to paintpublic interface GraphicalView<O>
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getBox(O obj,
java.awt.Point center)
Box where the object is sensible at listeners (like Hitbox)
|
void |
paint(java.awt.Graphics2D g2,
O obj,
java.awt.Point center)
The paint function, aka the part where you can draw things (like Mesh)
|
java.awt.Rectangle getBox(O obj, java.awt.Point center)
obj - the object to drawcenter - the center point of the objectvoid paint(java.awt.Graphics2D g2,
O obj,
java.awt.Point center)
g2 - the graphics object used for paintingobj - the object to paintcenter - the center point of the object