public class ObjectSwingRenderer extends Object implements Renderer<Object,JComponent>
Renderer
implementation that can display any object
as a Swing component. It simply converts the object into its String
representation (via the Object.toString()
method) and shows
that in a text area.Constructor and Description |
---|
ObjectSwingRenderer() |
Modifier and Type | Method and Description |
---|---|
JComponent |
render(Object entity)
Calls
Object.toString() on the specified entity and creates
a JTextArea containing that text. |
public JComponent render(Object entity)
Object.toString()
on the specified entity and creates
a JTextArea
containing that text.render
in interface Renderer<Object,JComponent>
entity
- The evolved entity to render.