|
|
|||||||||
| 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.vis2d.P2DVisualization<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.MoveObjectsToolVisualization<NV>
NV - Type of the NumberVector being visualized.public class MoveObjectsToolVisualization<NV extends NumberVector<NV,?>>

Tool to move the currently selected objects.
| Nested Class Summary | |
|---|---|
static class |
MoveObjectsToolVisualization.Factory<NV extends NumberVector<NV,?>>
Factory for tool visualizations for changing objects in the database |
| Field Summary | |
|---|---|
protected static String |
CSS_ARROW
CSS tag for our event rectangle |
private Element |
etag
Element for the rectangle to add listeners |
private static String |
NAME
A short name characterizing this Visualizer. |
private Element |
rtag
Element to contain the drag arrow |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
|---|
proj, rel |
| Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
context, layer, pendingRedraw, svgp, task |
| Constructor Summary | |
|---|---|
MoveObjectsToolVisualization(VisualizationTask task)
|
|
| Method Summary | |
|---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes |
void |
contextChanged(ContextChangedEvent e)
Method called on context changes (e.g. projection changes). |
private void |
deleteChildren(Element container)
Delete the children of the element |
void |
destroy()
Destroy the visualization. |
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. |
protected void |
redraw()
Perform a full redraw. |
boolean |
startDrag(org.w3c.dom.svg.SVGPoint startPoint,
Event evt)
Action to do on drag start. |
private void |
updateDB(DBIDs dbids,
Vector movingVector)
Updates the objects with the given DBIDs It will be moved depending on the given Vector |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
|---|
setupCanvas |
| Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
|---|
getHeight, getLayer, getWidth, incrementalRedraw, 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_ARROW
private Element etag
private Element rtag
| Constructor Detail |
|---|
public MoveObjectsToolVisualization(VisualizationTask task)
| Method Detail |
|---|
public void destroy()
Visualization
destroy in interface Visualizationdestroy in class AbstractVisualizationpublic void contextChanged(ContextChangedEvent e)
ContextChangeListener
contextChanged in interface ContextChangeListenercontextChanged in class AbstractVisualizatione - Change eventprotected void redraw()
AbstractVisualization
redraw in class AbstractVisualization
private void updateDB(DBIDs dbids,
Vector movingVector)
dbids - - DBIDs of the objects to movemovingVector - - Vector for moving objectprivate void deleteChildren(Element container)
container - SVG-Elementprivate void addCSSClasses(SVGPlot svgp)
svgp - SVGPlot
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 drag
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||