public class EditDataSet extends TableViewer
| Type | Property and Description |
|---|---|
ObjectProperty<Cursor> |
dragCursor
Mouse cursor to be used during drag operation.
|
ReadOnlyBooleanProperty |
editEnable |
DoubleProperty |
pickingDistance
Distance of the mouse cursor from the data point (expressed in display units) that should trigger showing the
tool tip.
|
addButtonsToToolBarProperty, chartProperty| Modifier and Type | Class and Description |
|---|---|
class |
EditDataSet.DataPoint |
protected class |
EditDataSet.PointEditionPopup |
protected class |
EditDataSet.SelectedDataPoint |
TableViewer.ColumnType, TableViewer.DataSetsModel, TableViewer.DataSetsRoweditable, FONT_AWESOME, FONT_SIZE| Constructor and Description |
|---|
EditDataSet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPoint(double x,
double y) |
protected void |
applyDrag(double deltaX,
double deltaY) |
protected void |
deleteAllMarkedPoints() |
ObjectProperty<Cursor> |
dragCursorProperty()
Mouse cursor to be used during drag operation.
|
ReadOnlyBooleanProperty |
editEnableProperty() |
protected void |
findDataPoint(Axis xAxis,
Axis yAxis,
List<DataSet> dataSets) |
protected EditDataSet.DataPoint |
findNearestDataPoint(Chart chart,
Point2D mouseLocation) |
protected Pair<EditDataSet.DataPoint,EditDataSet.DataPoint> |
findNeighborPoints(DataSet dataSet,
double searchedX)
Handles series that have data sorted or not sorted with respect to X coordinate.
|
protected List<EditDataSet.DataPoint> |
findNeighborPoints(XYChart chart,
double searchedX) |
Cursor |
getDragCursor()
Returns the value of the
dragCursorProperty() |
protected HBox |
getInteractorBar()
Helper function to initialize the UI elements for the Interactor toolbar.
|
double |
getPickingDistance()
Returns the value of the
pickingDistanceProperty(). |
Predicate<MouseEvent> |
getSelectionMouseFilter()
Returns zoom-in mouse event filter.
|
protected void |
installCursor() |
static boolean |
isControlDown() |
boolean |
isEditable()
Returns the value of the
editEnableProperty() |
protected boolean |
isMouseEventWithinCanvas(MouseEvent mouseEvent) |
static boolean |
isShiftDown() |
protected void |
performPointDrag(MouseEvent event) |
protected void |
performSelection() |
DoubleProperty |
pickingDistanceProperty()
Distance of the mouse cursor from the data point (expressed in display units) that should trigger showing the
tool tip.
|
protected void |
selectionDragged(MouseEvent event) |
protected void |
selectionEnded() |
protected boolean |
selectionOngoing() |
protected void |
selectionStarted(MouseEvent event) |
void |
setDragCursor(Cursor cursor)
Sets value of the
dragCursorProperty(). |
void |
setPickingDistance(double distance)
Sets the value of
pickingDistanceProperty(). |
void |
setZoomInMouseFilter(Predicate<MouseEvent> zoomInMouseFilter)
Sets filter on
DRAG_DETECTED events that should start zoom-in operation. |
protected EventHandler<MouseEvent> |
startDragHandler(EditDataSet.SelectedDataPoint dataPoint)
Creates an event handler that handles a mouse press on the node.
|
protected void |
uninstallCursor() |
protected void |
updateMarker() |
copySelectedToClipboard, exportGridToCSV, getTableaddButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic final ObjectProperty<Cursor> dragCursorProperty
getDragCursor(),
setDragCursor(Cursor)public final ReadOnlyBooleanProperty editEnableProperty
public final DoubleProperty pickingDistanceProperty
getPickingDistance(),
setPickingDistance(double)protected static final String STYLE_CLASS_SELECT_RECT
protected static final String STYLE_CLASS_SELECT_PATH
protected static final PseudoClass NOEDIT_PSEUDO_CLASS
protected static final int DEFAULT_MARKER_RADIUS
public static final int DEFAULT_PICKING_DISTANCE
protected static final int SELECT_RECT_MIN_SIZE
protected static final int FONT_SIZE_COMBO
protected boolean isPointDragActive
protected final ConcurrentHashMap<EditableDataSet,ConcurrentHashMap<Integer,EditDataSet.SelectedDataPoint>> markedPoints
protected final Rectangle selectRectangle
protected Point2D selectStartPoint
protected Point2D selectEndPoint
protected Cursor originalCursor
protected final ObjectProperty<Cursor> dragCursor
protected BooleanProperty editEnable
protected BooleanProperty allowShiftX
protected BooleanProperty allowShiftY
protected Predicate<MouseEvent> zoomInMouseFilter
protected Pane markerPane
protected EditDataSet.PointEditionPopup popup
protected EventHandler<MouseEvent> dragHandler
protected void addPoint(double x,
double y)
protected void applyDrag(double deltaX,
double deltaY)
protected void deleteAllMarkedPoints()
public final ObjectProperty<Cursor> dragCursorProperty()
getDragCursor(),
setDragCursor(Cursor)public final ReadOnlyBooleanProperty editEnableProperty()
protected EditDataSet.DataPoint findNearestDataPoint(Chart chart, Point2D mouseLocation)
protected Pair<EditDataSet.DataPoint,EditDataSet.DataPoint> findNeighborPoints(DataSet dataSet, double searchedX)
dataSet - data setsearchedX - X coordinatesprotected List<EditDataSet.DataPoint> findNeighborPoints(XYChart chart, double searchedX)
public final Cursor getDragCursor()
dragCursorProperty()protected HBox getInteractorBar()
TableViewergetInteractorBar in class TableViewerpublic final double getPickingDistance()
pickingDistanceProperty().public Predicate<MouseEvent> getSelectionMouseFilter()
setZoomInMouseFilter(Predicate)protected void installCursor()
public final boolean isEditable()
editEnableProperty()protected boolean isMouseEventWithinCanvas(MouseEvent mouseEvent)
protected void performPointDrag(MouseEvent event)
protected void performSelection()
public final DoubleProperty pickingDistanceProperty()
getPickingDistance(),
setPickingDistance(double)protected void selectionDragged(MouseEvent event)
protected void selectionEnded()
protected boolean selectionOngoing()
protected void selectionStarted(MouseEvent event)
public final void setDragCursor(Cursor cursor)
dragCursorProperty().cursor - the cursor to be used by the pluginpublic final void setPickingDistance(double distance)
pickingDistanceProperty().distance - the new picking distancepublic void setZoomInMouseFilter(Predicate<MouseEvent> zoomInMouseFilter)
DRAG_DETECTED events that should start zoom-in operation.zoomInMouseFilter - the filter to accept zoom-in mouse event. If null then any DRAG_DETECTED event
will start zoom-in operation. By default it's set to defaultSelectFilter.getSelectionMouseFilter()protected EventHandler<MouseEvent> startDragHandler(EditDataSet.SelectedDataPoint dataPoint)
dataPoint - corresponding to clicked data pointprotected void uninstallCursor()
protected void updateMarker()
public static boolean isControlDown()
public static boolean isShiftDown()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.