public class ROI2DShape.ROI2DShapePainter extends ROI2D.ROI2DPainter implements VtkPainter, java.lang.Runnable
Overlay.OverlayPriority
LOD_SMALL, LOD_TINY, PROPERTY_CANBEREMOVED, PROPERTY_NAME, PROPERTY_PRIORITY, PROPERTY_READONLY, PROPERTY_RECEIVEKEYEVENTONHIDDEN, PROPERTY_RECEIVEMOUSEEVENTONHIDDEN
Constructor and Description |
---|
ROI2DShape.ROI2DShapePainter() |
Modifier and Type | Method and Description |
---|---|
vtk.vtkProp[] |
getProps()
Returns the VTK actors for this painter.
|
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 |
run() |
void |
setColor(java.awt.Color value)
Set the ROI painter base color.
|
void |
setOpacity(float value)
Sets the content opacity factor (0 = transparent while 1 means opaque).
|
paint
computePriority, getAdjustedStroke, getColor, getDisplayColor, getFocusedColor, getMousePos, getName, getOpacity, getSelectedColor, getStroke, isReadOnly, loadFromXML, saveToXML, setMousePos, setName, setSelectedColor, setStroke
addOverlayListener, attachTo, beginUpdate, changed, compareTo, detachFrom, endUpdate, getCanBeRemoved, getOptionsPanel, getPriority, getReceiveKeyEventOnHidden, getReceiveMouseEventOnHidden, getSequences, isAttached, isFixed, isUpdating, keyPressed, keyReleased, mouseClick, mouseDrag, mouseEntered, mouseEntered, mouseExited, mouseExited, mouseMove, mousePressed, mouseReleased, mouseWheelMoved, mouseWheelMoved, onChanged, painterChanged, propertyChanged, remove, removeOverlayListener, setCanBeRemoved, setFixed, setPriority, setReadOnly, setReceiveKeyEventOnHidden, setReceiveMouseEventOnHidden
public ROI2DShape.ROI2DShapePainter()
public void keyPressed(java.awt.event.KeyEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
keyPressed
in class ROI.ROIPainter
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 ROI2D.ROI2DPainter
e
- key eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void mousePressed(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mousePressed
in class ROI2D.ROI2DPainter
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 ROI2D.ROI2DPainter
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic 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 mouseDrag(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mouseDrag
in class ROI2D.ROI2DPainter
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void mouseMove(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlay
mouseMove
in class ROI2D.ROI2DPainter
e
- mouse eventimagePoint
- mouse position (image coordinates)canvas
- icy canvaspublic void setColor(java.awt.Color value)
ROI.ROIPainter
setColor
in class ROI.ROIPainter
public void setOpacity(float value)
ROI.ROIPainter
setOpacity
in class ROI.ROIPainter
public vtk.vtkProp[] getProps()
VtkPainter
getProps
in interface VtkPainter
public void run()
run
in interface java.lang.Runnable