public class OnDrawHandler extends java.lang.Object implements TableElementOnDraw
RenderedElement instance to the RenderingInfo
for each element in the chart that requires it, and (2) it adds element
hinting to the Graphics2D output (how this is handled by the
Graphics2D instance is implementation dependent).| Constructor and Description |
|---|
OnDrawHandler(RenderingInfo info,
boolean elementHinting)
Creates a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterDraw(TableElement element,
java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D bounds)
A callback method that is called after an element is drawn.
|
void |
beforeDraw(TableElement element,
java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D bounds)
A callback method that is called before an element is drawn.
|
public OnDrawHandler(RenderingInfo info, boolean elementHinting)
info - the rendering info to be populated (null
permitted).elementHinting - a flag that controls whether or not element
hinting is performed.public void beforeDraw(TableElement element, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D bounds)
TableElementOnDrawbeforeDraw in interface TableElementOnDrawelement - the element (null not permitted).g2 - the graphics target (null not permitted).bounds - the bounds (null not permitted).public void afterDraw(TableElement element, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D bounds)
TableElementOnDrawafterDraw in interface TableElementOnDrawelement - the element (null not permitted).g2 - the graphics target (null not permitted).bounds - the bounds (null not permitted).