
public class SelectionToolAxisRangeVisualization.Instance extends AbstractParallelVisualization<NumberVector<?>> implements DragableArea.DragListener
| Modifier and Type | Field and Description | 
|---|---|
| private static String | CSS_RANGEMARKERGeneric tag to indicate the type of element. | 
| private Element | etagElement for the rectangle to add listeners | 
| private Element | rtagElement for selection rectangle | 
axsep, proj, relationcontext, layer, pendingRedraw, svgp, task| Constructor and Description | 
|---|
| SelectionToolAxisRangeVisualization.Instance(VisualizationTask task)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addCSSClasses(SVGPlot svgp)Adds the required CSS-Classes | 
| private void | deleteChildren(Element container)Delete the children of the element | 
| 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 | updateSelection(Projection proj,
               org.w3c.dom.svg.SVGPoint p1,
               org.w3c.dom.svg.SVGPoint p2)Update the selection in the context. | 
| private void | updateSelectionRectKoordinates(double x1,
                              double x2,
                              double y1,
                              double y2,
                              DoubleDoublePair[] ranges)Set the selected ranges and the mask for the actual dimensions in the
 context | 
getAxisSep, getMarginLeft, getMarginTop, getSizeX, getSizeY, getVisibleAxisX, resultChanged, setupCanvascontentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedrawprivate static final String CSS_RANGEMARKER
private Element rtag
private Element etag
public SelectionToolAxisRangeVisualization.Instance(VisualizationTask task)
task - Taskprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void deleteChildren(Element container)
container - SVG-Elementprivate void updateSelectionRectKoordinates(double x1,
                                  double x2,
                                  double y1,
                                  double y2,
                                  DoubleDoublePair[] ranges)
x1 - min x-valuex2 - max x-valuey1 - min y-valuey2 - max y-valuepublic boolean startDrag(org.w3c.dom.svg.SVGPoint startPoint, 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, 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, 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 dragprivate void updateSelection(Projection proj, org.w3c.dom.svg.SVGPoint p1, org.w3c.dom.svg.SVGPoint p2)
proj - The projectionp1 - First Point of the selected rectanglep2 - Second Point of the selected rectangleprotected void addCSSClasses(SVGPlot svgp)
svgp - SVG-Plot