|
|
|||||||||
| 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.SelectionToolDotVisualization<NV>
NV - vector typepublic class SelectionToolDotVisualization<NV extends NumberVector<NV,?>>

Tool-Visualization for the tool to select objects
| Nested Class Summary | |
|---|---|
static class |
SelectionToolDotVisualization.Factory<NV extends NumberVector<NV,?>>
Factory for tool visualizations for selecting objects |
private static class |
SelectionToolDotVisualization.Mode
Input modes |
| Field Summary | |
|---|---|
private static String |
CSS_RANGEMARKER
CSS class of the selection rectangle while selecting. |
(package private) Element |
etag
Element for the rectangle to add listeners |
private static String |
NAME
A short name characterizing this Visualizer. |
(package private) Element |
rtag
Element for selection rectangle |
| 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 | |
|---|---|
SelectionToolDotVisualization(VisualizationTask task)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes |
void |
contextChanged(ContextChangedEvent e)
Method called on context changes (e.g. projection changes). |
private void |
deleteChildren(Element container)
Delete the children of the element |
void |
destroy()
Destroy the visualization. |
boolean |
duringDrag(org.w3c.dom.svg.SVGPoint startPoint,
org.w3c.dom.svg.SVGPoint dragPoint,
Event evt,
boolean inside)
Method called during drags. |
boolean |
endDrag(org.w3c.dom.svg.SVGPoint startPoint,
org.w3c.dom.svg.SVGPoint dragPoint,
Event evt,
boolean inside)
Method called when a drag was ended. |
private SelectionToolDotVisualization.Mode |
getInputMode(Event evt)
Get the current input mode, on each mouse event. |
protected void |
redraw()
Perform a full redraw. |
boolean |
startDrag(org.w3c.dom.svg.SVGPoint startPoint,
Event evt)
Action to do on drag start. |
private void |
updateSelection(SelectionToolDotVisualization.Mode mode,
Projection2D proj,
org.w3c.dom.svg.SVGPoint p1,
org.w3c.dom.svg.SVGPoint p2)
Updates the selection in the context. |
| 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 |
|---|
getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, 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 String CSS_RANGEMARKER
Element rtag
Element etag
| Constructor Detail |
|---|
public SelectionToolDotVisualization(VisualizationTask task)
task - Task| Method Detail |
|---|
public void destroy()
Visualization
destroy in interface Visualizationdestroy in class AbstractVisualizationpublic 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 - SVG-Element
public boolean startDrag(org.w3c.dom.svg.SVGPoint startPoint,
Event evt)
DragableArea.DragListener
startDrag in interface DragableArea.DragListenerstartPoint - Point where the drag was started.evt - The event object
true to start the drag operation
public boolean duringDrag(org.w3c.dom.svg.SVGPoint startPoint,
org.w3c.dom.svg.SVGPoint dragPoint,
Event evt,
boolean inside)
DragableArea.DragListener
duringDrag in interface DragableArea.DragListenerstartPoint - Drag starting pointdragPoint - Drag end pointevt - The event objectinside - Inside the tracked element
true to continue the drag
public boolean endDrag(org.w3c.dom.svg.SVGPoint startPoint,
org.w3c.dom.svg.SVGPoint dragPoint,
Event evt,
boolean inside)
DragableArea.DragListener
endDrag in interface DragableArea.DragListenerstartPoint - Drag starting pointdragPoint - Drag end pointevt - The event objectinside - Whether the end point was inside the area
true to complete the dragprivate SelectionToolDotVisualization.Mode getInputMode(Event evt)
evt - Mouse event.
private void updateSelection(SelectionToolDotVisualization.Mode mode,
Projection2D proj,
org.w3c.dom.svg.SVGPoint p1,
org.w3c.dom.svg.SVGPoint p2)
mode - Input modeproj - p1 - first point of the selected rectanglep2 - second point of the selected rectangleprotected void addCSSClasses(SVGPlot svgp)
svgp - SVG-Plot
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||