public class ROI2DArea.ROI2DAreaPainter extends ROI2D.ROI2DPainter implements java.lang.Runnable
Overlay.OverlayPriority
Modifier and Type | Field and Description |
---|---|
static float |
CONTENT_ALPHA
Deprecated.
Use
ROI.ROIPainter.getOpacity() instead. |
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 |
---|
ROI2DArea.ROI2DAreaPainter() |
Modifier and Type | Method and Description |
---|---|
void |
addToMask(java.awt.geom.Point2D pos) |
void |
drawROI(java.awt.Graphics2D g,
Sequence sequence,
IcyCanvas canvas)
Draw the ROI itself
|
java.awt.Color |
getBrushColor()
Returns the brush color
|
java.awt.geom.Point2D |
getBrushPosition()
Returns the brush position.
|
float |
getBrushSize()
Returns the brush size.
|
java.awt.Color |
getCursorColor()
Deprecated.
Use
getBrushColor() instead |
java.awt.geom.Point2D |
getCursorPosition()
Deprecated.
Use
getBrushPosition() instead. |
float |
getCursorSize()
Deprecated.
Use
getBrushSize() instead |
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 |
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.
|
void |
painterChanged()
Notify the painter content has changed.
|
void |
removeFromMask(java.awt.geom.Point2D pos) |
void |
run() |
void |
setBrushColor(java.awt.Color value)
Sets the brush color
|
void |
setBrushPosition(java.awt.geom.Point2D position)
Set the brush position.
|
void |
setBrushSize(float value)
Sets the brush size.
|
void |
setCursorColor(java.awt.Color value)
Deprecated.
Use
setBrushColor(Color) instead |
void |
setCursorPosition(java.awt.geom.Point2D position)
Deprecated.
Use
setBrushPosition(Point2D) instead. |
void |
setCursorSize(float value)
Deprecated.
Use
setBrushSize(float) instead |
drawName
computePriority, getAdjustedStroke, getColor, getDisplayColor, getFocusedColor, getMousePos, getName, getOpacity, getSelectedColor, getShowName, getStroke, hideVtkObjects, isReadOnly, keyReleased, loadFromXML, saveToXML, setColor, setMousePos, setName, setOpacity, setSelectedColor, setShowName, setStroke
addOverlayListener, attachTo, beginUpdate, changed, compareTo, createFromXML, detachFrom, endUpdate, getAttachedCanvas, getCanBeRemoved, getOptionsPanel, getOverlayCount, getPriority, getReceiveKeyEventOnHidden, getReceiveMouseEventOnHidden, getSequences, isAttached, isFixed, isPersistent, isUpdating, keyPressed, keyReleased, loadFromXML, loadOverlaysFromXML, mouseClick, mouseDrag, mouseEntered, mouseEntered, mouseExited, mouseExited, mouseMove, mousePressed, mouseReleased, mouseWheelMoved, mouseWheelMoved, onChanged, propertyChanged, remove, removeOverlayListener, saveOverlaysToXML, setCanBeRemoved, setFixed, setPersistent, setPriority, setReadOnly, setReceiveKeyEventOnHidden, setReceiveMouseEventOnHidden
@Deprecated public static final float CONTENT_ALPHA
ROI.ROIPainter.getOpacity()
instead.public ROI2DArea.ROI2DAreaPainter()
public java.awt.geom.Point2D getBrushPosition()
public void setBrushPosition(java.awt.geom.Point2D position)
@Deprecated public java.awt.geom.Point2D getCursorPosition()
getBrushPosition()
instead.@Deprecated public void setCursorPosition(java.awt.geom.Point2D position)
setBrushPosition(Point2D)
instead.public float getBrushSize()
public void setBrushSize(float value)
@Deprecated public float getCursorSize()
getBrushSize()
instead@Deprecated public void setCursorSize(float value)
setBrushSize(float)
insteadpublic java.awt.Color getBrushColor()
public void setBrushColor(java.awt.Color value)
@Deprecated public java.awt.Color getCursorColor()
getBrushColor()
instead@Deprecated public void setCursorColor(java.awt.Color value)
setBrushColor(Color)
insteadpublic void addToMask(java.awt.geom.Point2D pos)
public void removeFromMask(java.awt.geom.Point2D pos)
public void painterChanged()
Overlay
painterChanged
in class Overlay
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 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 ROI.ROIPainter
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 ROI.ROIPainter
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 paint(java.awt.Graphics2D g, Sequence sequence, IcyCanvas canvas)
Overlay
paint
in interface Painter
paint
in class ROI2D.ROI2DPainter
public void drawROI(java.awt.Graphics2D g, Sequence sequence, IcyCanvas canvas)
drawROI
in class ROI2D.ROI2DPainter
public vtk.vtkProp[] getProps()
VtkPainter
getProps
in interface VtkPainter
getProps
in class ROI.ROIPainter
public void run()
run
in interface java.lang.Runnable