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