| Modifier and Type | Class and Description |
|---|---|
class |
SimpleObjectPainter<T>
Implementation of a
Painter that allows setting an object
that should be painted with a delegate ObjectPainter |
| Modifier and Type | Method and Description |
|---|---|
static <T> Painter |
Painters.create(ObjectPainter<T> objectPainter,
T object)
Creates a new
Painter that only paints the given object
with the given ObjectPainter |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Viewer.addPainter(Painter painter)
Add the given
Painter, which will perform painting
operations in the Viewer.paintComponent(Graphics) method. |
boolean |
Viewer.addPainter(Painter painter,
int layer)
Add the given
Painter, which will perform painting
operations in the Viewer.paintComponent(Graphics) method,
on the specified layer. |
boolean |
Viewer.removePainter(Painter painter)
Remove the given
Painter from all layers that it is contained
in |
boolean |
Viewer.removePainter(Painter painter,
int layer)
Remove the given
Painter from the specified layer |
Copyright © 2015. All rights reserved.