public class OverlayWrapper extends Overlay
Painter
interface.Overlay.OverlayPriority
ID_CANBEREMOVED, ID_CLASSNAME, ID_ID, ID_NAME, ID_OVERLAY, ID_PRIORITY, ID_READONLY, ID_RECEIVEKEYEVENTONHIDDEN, ID_RECEIVEMOUSEEVENTONHIDDEN, LOD_SMALL, LOD_TINY, PROPERTY_CANBEREMOVED, PROPERTY_NAME, PROPERTY_PERSISTENT, PROPERTY_PRIORITY, PROPERTY_READONLY, PROPERTY_RECEIVEKEYEVENTONHIDDEN, PROPERTY_RECEIVEMOUSEEVENTONHIDDEN
Constructor and Description |
---|
OverlayWrapper(Painter painter,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
Painter |
getPainter() |
void |
keyPressed(java.awt.event.KeyEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Key press event forwarded to the overlay.
|
void |
keyReleased(java.awt.event.KeyEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Key release event forwarded to the overlay.
|
void |
mouseClick(java.awt.event.MouseEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Mouse click event forwarded to the overlay.
|
void |
mouseDrag(java.awt.event.MouseEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Mouse drag event forwarded to the overlay.
|
void |
mouseMove(java.awt.event.MouseEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Mouse move event forwarded to the overlay.
|
void |
mousePressed(java.awt.event.MouseEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Mouse press event forwarded to the overlay.
|
void |
mouseReleased(java.awt.event.MouseEvent e,
Point5D.Double imagePoint,
IcyCanvas canvas)
Mouse release event forwarded to the overlay.
|
void |
paint(java.awt.Graphics2D g,
Sequence sequence,
IcyCanvas canvas)
Paint method called to draw the overlay.
|
addOverlayListener, attachTo, beginUpdate, changed, compareTo, createFromXML, detachFrom, endUpdate, getAttachedCanvas, getCanBeRemoved, getName, getOptionsPanel, getOverlayCount, getPriority, getReceiveKeyEventOnHidden, getReceiveMouseEventOnHidden, getSequences, isAttached, isFixed, isPersistent, isReadOnly, isUpdating, keyPressed, keyReleased, loadFromXML, loadFromXML, loadOverlaysFromXML, mouseClick, mouseDrag, mouseEntered, mouseEntered, mouseExited, mouseExited, mouseMove, mousePressed, mouseReleased, mouseWheelMoved, mouseWheelMoved, onChanged, painterChanged, propertyChanged, remove, removeOverlayListener, saveOverlaysToXML, saveToXML, setCanBeRemoved, setFixed, setName, setPersistent, setPriority, setReadOnly, setReceiveKeyEventOnHidden, setReceiveMouseEventOnHidden
public OverlayWrapper(Painter painter, java.lang.String name)
public Painter getPainter()
public void paint(java.awt.Graphics2D g, Sequence sequence, IcyCanvas canvas)
Overlay
public void mouseClick(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mouseClick
in class Overlay
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void mousePressed(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mousePressed
in class Overlay
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void mouseReleased(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mouseReleased
in class Overlay
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void mouseMove(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
public void mouseDrag(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
public void keyPressed(java.awt.event.KeyEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
keyPressed
in class Overlay
e
- key eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void keyReleased(java.awt.event.KeyEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
keyReleased
in class Overlay
e
- key eventimagePoint
- mouse position (image coordinates)canvas
- icy canvas