public class MoveObjectsToolVisualization.Instance extends AbstractScatterplotVisualization implements DragableArea.DragListener
| Modifier and Type | Field and Description | 
|---|---|
protected static java.lang.String | 
CSS_ARROW
CSS tag for our event rectangle 
 | 
private org.w3c.dom.Element | 
rtag
Element to contain the drag arrow 
 | 
proj, rel, samplecontext, 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(SVGPlot svgp)
Adds the required CSS-Classes 
 | 
private void | 
deleteChildren(org.w3c.dom.Element container)
Delete the children of the element 
 | 
boolean | 
duringDrag(org.w3c.dom.svg.SVGPoint startPoint,
          org.w3c.dom.svg.SVGPoint dragPoint,
          org.w3c.dom.events.Event evt,
          boolean inside)
Method called during drags. 
 | 
boolean | 
endDrag(org.w3c.dom.svg.SVGPoint startPoint,
       org.w3c.dom.svg.SVGPoint dragPoint,
       org.w3c.dom.events.Event evt,
       boolean inside)
Method called when a drag was ended. 
 | 
void | 
fullRedraw()
Request a full redrawing of the visualization. 
 | 
boolean | 
startDrag(org.w3c.dom.svg.SVGPoint startPoint,
         org.w3c.dom.events.Event evt)
Action to do on drag start. 
 | 
private void | 
updateDB(DBIDs dbids,
        double[] movingVector)
Updates the objects with the given DBIDs It will be moved depending on
 the given Vector 
 | 
setupCanvas, setupCanvas, visualizationChangedaddListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemovedprotected static final java.lang.String CSS_ARROW
private org.w3c.dom.Element rtag
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 AbstractVisualizationprivate void updateDB(DBIDs dbids, double[] movingVector)
dbids - - DBIDs of the objects to movemovingVector - - Vector for moving objectprivate void deleteChildren(org.w3c.dom.Element container)
container - SVG-Elementprivate void addCSSClasses(SVGPlot svgp)
svgp - SVGPlotpublic boolean startDrag(org.w3c.dom.svg.SVGPoint startPoint,
                         org.w3c.dom.events.Event evt)
DragableArea.DragListenerstartDrag in interface DragableArea.DragListenerstartPoint - Point where the drag was started.evt - The event objecttrue to start the drag operationpublic boolean duringDrag(org.w3c.dom.svg.SVGPoint startPoint,
                          org.w3c.dom.svg.SVGPoint dragPoint,
                          org.w3c.dom.events.Event evt,
                          boolean inside)
DragableArea.DragListenerduringDrag in interface DragableArea.DragListenerstartPoint - Drag starting pointdragPoint - Drag end pointevt - The event objectinside - Inside the tracked elementtrue to continue the dragpublic boolean endDrag(org.w3c.dom.svg.SVGPoint startPoint,
                       org.w3c.dom.svg.SVGPoint dragPoint,
                       org.w3c.dom.events.Event evt,
                       boolean inside)
DragableArea.DragListenerendDrag in interface DragableArea.DragListenerstartPoint - Drag starting pointdragPoint - Drag end pointevt - The event objectinside - Whether the end point was inside the areatrue to complete the dragCopyright © 2019 ELKI Development Team. License information.