public interface GraphicalElement
Renderer
it
realizes the Anticyclic Visitor Pattern, a variant of the
GoF Visitor Pattern. This allows not only to extend JCCKit with
new renderers but also with new types of GraphicalElements
without touching existing code.Modifier and Type | Method and Description |
---|---|
void |
renderWith(Renderer renderer)
Renders this element according to the type of renderer.
|
void renderWith(Renderer renderer)
GraphicalComposite
dynamically cast renderer.
If it does not implement the type of renderer specific for
the concrete GraphicalElement it should throw an
IllegalArgumentException.Copyright © 2015. All Rights Reserved.