|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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.OPTICSPlotCutVisualization<D>
D
- distance typepublic class OPTICSPlotCutVisualization<D extends Distance<D>>
Visualizes a cut in an OPTICS Plot to select an Epsilon value and generate a new clustering result
Nested Class Summary | |
---|---|
static class |
OPTICSPlotCutVisualization.Factory
Factory class |
Field Summary | |
---|---|
protected static String |
CSS_EPSILON
CSS-Styles |
protected static String |
CSS_LINE
CSS-Styles |
private Element |
elementLine
The line element |
private Element |
elementPoint
The drag handle element |
private Element |
elemText
The label element |
private double |
epsilon
The current epsilon value. |
private DragableArea |
eventarea
Sensitive (clickable) area |
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 | |
---|---|
OPTICSPlotCutVisualization(VisualizationTask task)
Constructor. |
Method Summary | |
---|---|
private void |
addCSSClasses()
Adds the required CSS-Classes |
void |
destroy()
Destroy the visualization. |
boolean |
duringDrag(org.w3c.dom.svg.SVGPoint start,
org.w3c.dom.svg.SVGPoint end,
Event evt,
boolean inside)
Method called during drags. |
boolean |
endDrag(org.w3c.dom.svg.SVGPoint start,
org.w3c.dom.svg.SVGPoint end,
Event evt,
boolean inside)
Method called when a drag was ended. |
protected double |
getEpsilonFromY(double y)
Get epsilon from y-value |
protected double |
getYFromEpsilon(double epsilon)
Get y-value from epsilon |
protected void |
incrementalRedraw()
Redraw the visualization (maybe incremental). |
protected void |
redraw()
Perform a full redraw. |
boolean |
startDrag(org.w3c.dom.svg.SVGPoint start,
Event evt)
Action to do on drag start. |
void |
unsetEpsilon()
Reset the epsilon value. |
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, getHeight, getLayer, getWidth, 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
protected static final String CSS_LINE
protected static final String CSS_EPSILON
private double epsilon
private DragableArea eventarea
private Element elemText
private Element elementLine
private Element elementPoint
Constructor Detail |
---|
public OPTICSPlotCutVisualization(VisualizationTask task)
task
- TaskMethod Detail |
---|
protected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
protected void incrementalRedraw()
AbstractVisualization
incrementalRedraw
in class AbstractVisualization
public void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
protected double getEpsilonFromY(double y)
y
- y-Value
protected double getYFromEpsilon(double epsilon)
epsilon
- epsilon
public boolean startDrag(org.w3c.dom.svg.SVGPoint start, Event evt)
DragableArea.DragListener
startDrag
in interface DragableArea.DragListener
start
- Point where the drag was started.evt
- The event object
true
to start the drag operationpublic boolean duringDrag(org.w3c.dom.svg.SVGPoint start, org.w3c.dom.svg.SVGPoint end, Event evt, boolean inside)
DragableArea.DragListener
duringDrag
in interface DragableArea.DragListener
start
- Drag starting pointend
- Drag end pointevt
- The event objectinside
- Inside the tracked element
true
to continue the dragpublic boolean endDrag(org.w3c.dom.svg.SVGPoint start, org.w3c.dom.svg.SVGPoint end, Event evt, boolean inside)
DragableArea.DragListener
endDrag
in interface DragableArea.DragListener
start
- Drag starting pointend
- Drag end pointevt
- The event objectinside
- Whether the end point was inside the area
true
to complete the dragpublic void unsetEpsilon()
private void addCSSClasses()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |