
D - distance typepublic class OPTICSPlotCutVisualization.Instance<D extends Distance<D>> extends AbstractOPTICSVisualization<D> implements DragableArea.DragListener
| Modifier and Type | Field and Description | 
|---|---|
| protected static String | CSS_EPSILONCSS-Styles | 
| protected static String | CSS_LINECSS-Styles | 
| private Element | elementLineThe line element | 
| private Element | elementPointThe drag handle element | 
| private Element | elemTextThe label element | 
| private double | epsilonThe current epsilon value. | 
| private DragableArea | eventareaSensitive (clickable) area | 
optics, plotheight, plotwidthcontext, layer, pendingRedraw, svgp, task| Constructor and Description | 
|---|
| OPTICSPlotCutVisualization.Instance(VisualizationTask task)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
getClusterOrder, makeLayerElementcontentChanged, getHeight, getLayer, getWidth, resultAdded, resultChanged, resultRemoved, synchronizedRedrawprotected 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
public OPTICSPlotCutVisualization.Instance(VisualizationTask task)
task - Taskprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprotected void incrementalRedraw()
AbstractVisualizationincrementalRedraw in class AbstractVisualizationpublic void destroy()
Visualizationdestroy in interface Visualizationdestroy in class AbstractVisualizationprotected double getEpsilonFromY(double y)
y - y-Valueprotected double getYFromEpsilon(double epsilon)
epsilon - epsilonpublic boolean startDrag(org.w3c.dom.svg.SVGPoint start, Event evt)
DragableArea.DragListenerstartDrag in interface DragableArea.DragListenerstart - Point where the drag was started.evt - The event objecttrue to start the drag operationpublic boolean duringDrag(org.w3c.dom.svg.SVGPoint start, org.w3c.dom.svg.SVGPoint end, Event evt, boolean inside)
DragableArea.DragListenerduringDrag in interface DragableArea.DragListenerstart - Drag starting pointend - Drag end pointevt - The event objectinside - Inside the tracked elementtrue to continue the dragpublic boolean endDrag(org.w3c.dom.svg.SVGPoint start, org.w3c.dom.svg.SVGPoint end, Event evt, boolean inside)
DragableArea.DragListenerendDrag in interface DragableArea.DragListenerstart - Drag starting pointend - Drag end pointevt - The event objectinside - Whether the end point was inside the areatrue to complete the dragpublic void unsetEpsilon()
private void addCSSClasses()