|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
public abstract class AbstractVisualizer
Abstract superclass for Visualizers.
| Field Summary | |
|---|---|
protected VisualizerContext |
context
Visualizer context to use |
private Vector<RedrawListener> |
listeners
Redraw Listeners |
protected AnyMap<String> |
metadata
Meta data storage |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
|---|
LEVEL_BACKGROUND, LEVEL_FOREGROUND, LEVEL_INTERACTIVE, LEVEL_STATIC, META_LEVEL, META_NAME, META_NOTHUMB, META_VISIBLE, META_VISIBLE_DEFAULT |
| Constructor Summary | |
|---|---|
protected |
AbstractVisualizer()
Constructor with default level. |
| Method Summary | |
|---|---|
void |
addRedrawListener(RedrawListener listener)
Add a redraw listener to the visualizer. |
protected void |
fireRedrawEvent()
Send a redraw notification to all listeners. |
AnyMap<String> |
getMetadata()
Get visualization meta data, such as dimensions visualized. |
protected void |
init(String name,
VisualizerContext context)
Initializes this Visualizer. |
boolean |
removeRedrawListener(RedrawListener listener)
Remove a redraw listener to the visualizer. |
void |
requestRedraw()
Request a redraw Note: this method may be overwritten by subclasses for custom redraw handling, or called by other classes when they know the underlying data has changed. |
protected void |
setLevel(int level)
Convenience method to update the visualizer level. |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected VisualizerContext context
protected AnyMap<String> metadata
private Vector<RedrawListener> listeners
| Constructor Detail |
|---|
protected AbstractVisualizer()
| Method Detail |
|---|
protected void init(String name,
VisualizerContext context)
name - a short name characterizing this Visualizercontext - Visualization contextprotected void setLevel(int level)
level - new level.public AnyMap<String> getMetadata()
Visualizer
getMetadata in interface Visualizerpublic void addRedrawListener(RedrawListener listener)
addRedrawListener in interface Visualizerlistener - Listener to be called on redraws.public boolean removeRedrawListener(RedrawListener listener)
removeRedrawListener in interface Visualizerlistener - Listener to be removed.
protected final void fireRedrawEvent()
public void requestRedraw()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||