|
|
|||||||||
| 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.optics.AbstractOPTICSVisualization<D>
de.lmu.ifi.dbs.elki.visualization.visualizers.optics.OPTICSPlotSelectionVisualization<D>
D - distance typepublic class OPTICSPlotSelectionVisualization<D extends Distance<D>>

Handle the marker in an OPTICS plot.
| Nested Class Summary | |
|---|---|
static class |
OPTICSPlotSelectionVisualization.Factory
Factory class for OPTICS plot selections. |
private static class |
OPTICSPlotSelectionVisualization.Mode
Input modes |
| Field Summary | |
|---|---|
protected static String |
CSS_MARKER
CSS class for markers |
protected static String |
CSS_RANGEMARKER
CSS class for markers |
private Element |
etag
Element for the events |
private static Logging |
logger
The logger for this class. |
private Element |
mtag
Element for the marker |
private static String |
NAME
A short name characterizing this Visualizer. |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.optics.AbstractOPTICSVisualization |
|---|
optics, plotheight, plotwidth |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
context, layer, pendingRedraw, svgp, task |
| Constructor Summary | |
|---|---|
OPTICSPlotSelectionVisualization(VisualizationTask task)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
addCSSClasses()
Adds the required CSS-Classes |
void |
addMarker()
Add marker for the selected IDs to mtag |
Element |
addMarkerRect(double x1,
double width)
Create a rectangle as marker (Marker higher than plot!) |
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 OPTICSPlotSelectionVisualization.Mode |
getInputMode(Event evt)
Get the current input mode, on each mouse event. |
private int |
getSelectedIndex(List<ClusterOrderEntry<D>> order,
org.w3c.dom.svg.SVGPoint cPt)
Gets the Index of the ClusterOrderEntry where the event occurred |
protected void |
redraw()
Perform a full redraw. |
void |
resultChanged(Result current)
Notify that the current result has changed substantially. |
boolean |
startDrag(org.w3c.dom.svg.SVGPoint startPoint,
Event evt)
Action to do on drag start. |
protected void |
updateSelection(OPTICSPlotSelectionVisualization.Mode mode,
int begin,
int end)
Updates the selection for the given ClusterOrderEntry. |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.optics.AbstractOPTICSVisualization |
|---|
getClusterOrder, makeLayerElement |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, 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 Logging logger
private static final String NAME
protected static final String CSS_MARKER
protected static final String CSS_RANGEMARKER
private Element etag
private Element mtag
| Constructor Detail |
|---|
public OPTICSPlotSelectionVisualization(VisualizationTask task)
task - Visualization task| Method Detail |
|---|
protected void redraw()
AbstractVisualization
redraw in class AbstractVisualizationpublic void addMarker()
public Element addMarkerRect(double x1,
double width)
x1 - X-Value for the markerwidth - Width of an entry
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 OPTICSPlotSelectionVisualization.Mode getInputMode(Event evt)
evt - Mouse event.
private int getSelectedIndex(List<ClusterOrderEntry<D>> order,
org.w3c.dom.svg.SVGPoint cPt)
order - List of ClusterOrderEntriescPt - clicked point
protected void updateSelection(OPTICSPlotSelectionVisualization.Mode mode,
int begin,
int end)
mode - Input modebegin - first index to selectend - last index to selectprivate void addCSSClasses()
public 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 | |||||||||||