public class VertexView<V> extends java.lang.Object implements GraphicalView<VertexComponent<V>>
| Constructor and Description |
|---|
VertexView() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getBox(VertexComponent<V> obj,
java.awt.Point center)
Box where the object is sensible at listeners (like Hitbox)
|
void |
paint(java.awt.Graphics2D g2,
VertexComponent<V> obj,
java.awt.Point center)
The paint function, aka the part where you can draw things (like Mesh)
|
public java.awt.Rectangle getBox(VertexComponent<V> obj, java.awt.Point center)
GraphicalViewgetBox in interface GraphicalView<VertexComponent<V>>obj - the object to drawcenter - the center point of the objectpublic void paint(java.awt.Graphics2D g2,
VertexComponent<V> obj,
java.awt.Point center)
GraphicalViewpaint in interface GraphicalView<VertexComponent<V>>g2 - the graphics object used for paintingobj - the object to paintcenter - the center point of the object