Package dataPlotsFX.overlaymark
Class TDMarkerAdapter
java.lang.Object
PamView.paneloverlay.overlaymark.ExtMouseAdapter
dataPlotsFX.overlaymark.TDOverlayAdapter
dataPlotsFX.overlaymark.TDMarkerAdapter
Adapter which converts the OverlayMark class within PAMGuard to the TDOverlayMarker used in the dataPlotsFX display.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawMark
(javafx.scene.canvas.GraphicsContext graphicsContext2D) Draw the markjavafx.scene.Node
getIcon()
The icon for the marker adapterGet an overlay mark.List<javafx.scene.control.MenuItem>
getPopupMenuItems
(javafx.scene.input.MouseEvent e) Get the selected detectionsjavafx.scene.control.Tooltip
boolean
mouseClicked
(javafx.scene.input.MouseEvent e) boolean
mouseDragged
(javafx.scene.input.MouseEvent e) boolean
mouseEntered
(javafx.scene.input.MouseEvent e) boolean
mouseExited
(javafx.scene.input.MouseEvent e) boolean
mouseMoved
(javafx.scene.input.MouseEvent e) boolean
mousePressed
(javafx.scene.input.MouseEvent e) boolean
mouseReleased
(javafx.scene.input.MouseEvent e) boolean
mouseWheelMoved
(javafx.scene.input.ScrollEvent e) boolean
Any displays using this manager need to be paused.void
subscribePanel
(TDGraphFX.TDPlotPane fxPlot) Called when the adapter is subscribed to a panel.Methods inherited from class PamView.paneloverlay.overlaymark.ExtMouseAdapter
fxMouse, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, swingMouse
-
Constructor Details
-
TDMarkerAdapter
-
-
Method Details
-
getSelectedDetectionGroup
Get the selected detections- Overrides:
getSelectedDetectionGroup
in classTDOverlayAdapter
- Returns:
- class containing selected detections
-
mouseClicked
public boolean mouseClicked(javafx.scene.input.MouseEvent e) - Overrides:
mouseClicked
in classExtMouseAdapter
-
mouseDragged
public boolean mouseDragged(javafx.scene.input.MouseEvent e) - Overrides:
mouseDragged
in classExtMouseAdapter
-
mouseEntered
public boolean mouseEntered(javafx.scene.input.MouseEvent e) - Overrides:
mouseEntered
in classExtMouseAdapter
-
mouseExited
public boolean mouseExited(javafx.scene.input.MouseEvent e) - Overrides:
mouseExited
in classExtMouseAdapter
-
mouseMoved
public boolean mouseMoved(javafx.scene.input.MouseEvent e) - Overrides:
mouseMoved
in classExtMouseAdapter
-
mousePressed
public boolean mousePressed(javafx.scene.input.MouseEvent e) - Overrides:
mousePressed
in classExtMouseAdapter
-
mouseReleased
public boolean mouseReleased(javafx.scene.input.MouseEvent e) - Overrides:
mouseReleased
in classExtMouseAdapter
-
mouseWheelMoved
public boolean mouseWheelMoved(javafx.scene.input.ScrollEvent e) - Overrides:
mouseWheelMoved
in classExtMouseAdapter
-
getIcon
public javafx.scene.Node getIcon()Description copied from class:TDOverlayAdapter
The icon for the marker adapter- Specified by:
getIcon
in classTDOverlayAdapter
- Returns:
- get the icon
-
subscribePanel
Description copied from class:TDOverlayAdapter
Called when the adapter is subscribed to a panel.- Specified by:
subscribePanel
in classTDOverlayAdapter
- Parameters:
fxPlot
- - the plot panel.
-
getToolTip
public javafx.scene.control.Tooltip getToolTip()- Specified by:
getToolTip
in classTDOverlayAdapter
-
drawMark
public void drawMark(javafx.scene.canvas.GraphicsContext graphicsContext2D) Description copied from class:TDOverlayAdapter
Draw the mark- Overrides:
drawMark
in classTDOverlayAdapter
- Parameters:
graphicsContext2D
- - the graphics context to draw on.
-
needPaused
public boolean needPaused()Description copied from class:TDOverlayAdapter
Any displays using this manager need to be paused.- Specified by:
needPaused
in classTDOverlayAdapter
- Returns:
-
getOverlayMark
Get an overlay mark.- Overrides:
getOverlayMark
in classTDOverlayAdapter
- Returns:
- the current overlay mark. Can be null.
-
getPopupMenuItems
- Overrides:
getPopupMenuItems
in classExtMouseAdapter
-