T
- the type of the object to renderpublic interface Renderer<T>
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
T o)
Renders the object to the graphics context.
|
void |
setBackground(java.awt.Color c)
Sets the background color.
|
void |
setFont(java.awt.Font f)
Sets the font.
|
void |
setForeground(java.awt.Color c)
Sets the foreground color.
|
void setBackground(java.awt.Color c)
c
- the background colorvoid setForeground(java.awt.Color c)
c
- the foreground colorvoid setFont(java.awt.Font f)
f
- the fontvoid draw(java.awt.Graphics2D g, T o)
g
- the graphics contexto
- the object that should be rendered