public interface Renderable
Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
getSize(java.awt.Graphics2D g)
Gets the rendered size for this renderable.
|
void |
render(java.awt.Graphics2D g)
Renders this renderable to the graphics context.
|
java.awt.Dimension getSize(java.awt.Graphics2D g)
g
- the graphics context to be used for rendering. This is
used to determine the total rendering size from font information
and so on.void render(java.awt.Graphics2D g)
g
- the graphics context for rendering.