
public class ToolBox2DVisualization.Instance extends AbstractScatterplotVisualization
| Modifier and Type | Field and Description | 
|---|---|
| private Element | containerThe container | 
| static String | CSS_TOOL_BUTTONCSS class for a tool button | 
| static String | CSS_TOOL_BUTTON_SELECTEDCSS class for a tool button | 
| static String | CSS_TOOL_CAPTIONCSS class for the tool button caption | 
proj, rel, samplecontext, layer, pendingRedraw, svgp, task| Constructor and Description | 
|---|
| ToolBox2DVisualization.Instance(VisualizationTask task)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
| 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. | 
setupCanvascontentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, synchronizedRedrawpublic static final String CSS_TOOL_BUTTON
public static final String CSS_TOOL_CAPTION
public static final String CSS_TOOL_BUTTON_SELECTED
private Element container
public ToolBox2DVisualization.Instance(VisualizationTask task)
task - Taskprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void deleteChildren(Element container)
container - Element to delete childrenprivate void buildToolBox()
private void addCSSClasses(SVGPlot svgp)
svgp - SVG-Plotprivate void addEventListener(Element tag, VisualizationTask tool)
tag - Element to add the listenertool - Tool represented by the Elementprotected void handleMouseClick(VisualizationTask tool)
tool - Selected Toolpublic void resultAdded(Result child, Result parent)
ResultListenerresultAdded in interface ResultListenerresultAdded in class AbstractVisualizationchild - New child result addedparent - Parent result that was added topublic void resultRemoved(Result child, Result parent)
ResultListenerresultRemoved in interface ResultListenerresultRemoved in class AbstractVisualizationchild - result that was removedparent - Parent result that was removed frompublic void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenerresultChanged in class AbstractScatterplotVisualizationcurrent - Result that has changed.