T - The type of diagram item that invokes the callback.@FunctionalInterface
public interface RenderCallback<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
render(T item,
java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D bounds)
Called to render a node's icon using Graphics2D API.
|
boolean render(T item, java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D bounds)
item - The diagram item that invokes the callback.graphics - A Graphics2D object representing the drawing canvas.bounds - The icon's bounding rectangle.