|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.ToolBox2DVisualization<NV>
NV - Type of the NumberVector being visualized.public class ToolBox2DVisualization<NV extends NumberVector<NV,?>>

Renders a tool box on the left of the 2D visualization
| Nested Class Summary | |
|---|---|
static class |
ToolBox2DVisualization.Factory<NV extends NumberVector<NV,?>>
Factory for visualizers for a toolbox |
| Field Summary | |
|---|---|
private Element |
container
The container |
static String |
CSS_TOOL_BUTTON
CSS class for a tool button |
static String |
CSS_TOOL_BUTTON_SELECTED
CSS class for a tool button |
static String |
CSS_TOOL_CAPTION
CSS class for the tool button caption |
private static Logging |
logger
The logger for this class. |
private static String |
NAME
A short name characterizing this Visualizer. |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
|---|
proj, rel |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
context, layer, pendingRedraw, svgp, task |
| Constructor Summary | |
|---|---|
ToolBox2DVisualization(VisualizationTask task)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes |
private void |
addEventListener(Element tag,
VisualizationTask tool)
Add an event listener to the Element |
private void |
buildToolBox()
Build the toolbox |
void |
contextChanged(ContextChangedEvent e)
Method called on context changes (e.g. projection changes). |
private void |
deleteChildren(Element container)
Deletes the children of the container |
protected void |
handleMouseClick(VisualizationTask tool)
Handle the mouseClick - change the selected tool in the context |
protected void |
redraw()
Perform a full redraw. |
void |
resultAdded(Result child,
Result parent)
A new derived result was added. |
void |
resultChanged(Result current)
Notify that the current result has changed substantially. |
void |
resultRemoved(Result child,
Result parent)
A result was removed. |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
|---|
setupCanvas |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
destroy, getHeight, getLayer, getWidth, incrementalRedraw, synchronizedRedraw, testRedraw |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String NAME
private static final Logging logger
public static final String CSS_TOOL_BUTTON
public static final String CSS_TOOL_CAPTION
public static final String CSS_TOOL_BUTTON_SELECTED
private Element container
| Constructor Detail |
|---|
public ToolBox2DVisualization(VisualizationTask task)
task - Task| Method Detail |
|---|
public void contextChanged(ContextChangedEvent e)
ContextChangeListener
contextChanged in interface ContextChangeListenercontextChanged in class AbstractVisualizatione - Change eventprotected void redraw()
AbstractVisualization
redraw in class AbstractVisualizationprivate void deleteChildren(Element container)
container - Element to delete childrenprivate void buildToolBox()
private void addCSSClasses(SVGPlot svgp)
svgp - SVG-Plot
private void addEventListener(Element tag,
VisualizationTask tool)
tag - Element to add the listenertool - Tool represented by the Elementprotected void handleMouseClick(VisualizationTask tool)
tool - Selected Tool
public void resultAdded(Result child,
Result parent)
ResultListener
resultAdded in interface ResultListenerresultAdded in class AbstractVisualizationchild - New child result addedparent - Parent result that was added to
public void resultRemoved(Result child,
Result parent)
ResultListener
resultRemoved in interface ResultListenerresultRemoved in class AbstractVisualizationchild - result that was removedparent - Parent result that was removed frompublic void resultChanged(Result current)
ResultListener
resultChanged in interface ResultListenerresultChanged in class AbstractVisualizationcurrent - Result that has changed.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||