public class OPTICSPlotCutVisualization.Instance extends AbstractOPTICSVisualization implements DragableArea.DragListener
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CSS_EPSILON
CSS-Styles
|
protected static java.lang.String |
CSS_LINE
CSS-Styles
|
private org.w3c.dom.Element |
elementLine
The line element
|
private org.w3c.dom.Element |
elementPoint
The drag handle element
|
private org.w3c.dom.Element |
elemText
The label element
|
private double |
epsilon
The current epsilon value.
|
private DragableArea |
eventarea
Sensitive (clickable) area
|
optics, plotheight, plotwidthcontext, layer, svgp, task| Constructor and Description |
|---|
Instance(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
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,
org.w3c.dom.events.Event evt,
boolean inside)
Method called during drags.
|
boolean |
endDrag(org.w3c.dom.svg.SVGPoint start,
org.w3c.dom.svg.SVGPoint end,
org.w3c.dom.events.Event evt,
boolean inside)
Method called when a drag was ended.
|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
protected double |
getEpsilonFromY(double y)
Get epsilon from y-value
|
protected double |
getYFromEpsilon(double epsilon)
Get y-value from epsilon
|
void |
incrementalRedraw()
Redraw the visualization (maybe incremental).
|
boolean |
startDrag(org.w3c.dom.svg.SVGPoint start,
org.w3c.dom.events.Event evt)
Action to do on drag start.
|
void |
unsetEpsilon()
Reset the epsilon value.
|
getClusterOrder, makeLayerElementaddListeners, contentChanged, getHeight, getLayer, getWidth, resultAdded, resultChanged, resultRemoved, visualizationChangedprotected static final java.lang.String CSS_LINE
protected static final java.lang.String CSS_EPSILON
private double epsilon
private DragableArea eventarea
private org.w3c.dom.Element elemText
private org.w3c.dom.Element elementLine
private org.w3c.dom.Element elementPoint
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context - Visualizer contexttask - Taskplot - Plot to draw towidth - Embedding widthheight - Embedding heightproj - Projectionpublic void fullRedraw()
VisualizationfullRedraw in interface VisualizationfullRedraw in class AbstractVisualizationpublic void incrementalRedraw()
AbstractVisualizationincrementalRedraw in interface VisualizationincrementalRedraw 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,
org.w3c.dom.events.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,
org.w3c.dom.events.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,
org.w3c.dom.events.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()
Copyright © 2019 ELKI Development Team. License information.