public abstract class ROI.ROIPainter extends Overlay implements VtkPainter
Overlay.OverlayPriorityID_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 |
|---|
ROI.ROIPainter() |
| Modifier and Type | Method and Description |
|---|---|
void |
computePriority() |
double |
getAdjustedStroke(IcyCanvas canvas)
Get adjusted stroke for the current canvas transformation
|
java.awt.Color |
getColor()
Return the ROI painter base color.
|
java.awt.Color |
getDisplayColor()
Returns the color used to display the ROI depending its current state.
|
java.awt.Color |
getFocusedColor()
Returns the color for focused state
|
Point5D.Double |
getMousePos()
Deprecated.
Better to retrieve mouse position from the
IcyCanvas object. |
java.lang.String |
getName() |
float |
getOpacity()
Returns the content opacity factor (0 = transparent while 1 means opaque).
|
vtk.vtkProp[] |
getProps()
Returns the VTK actors for this painter.
|
java.awt.Color |
getSelectedColor()
Deprecated.
|
boolean |
getShowName()
Return
true if ROI painter should display the ROI name at draw time. |
double |
getStroke()
Return the ROI painter stroke.
|
void |
hideVtkObjects() |
boolean |
isReadOnly()
Return read only property.
|
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.
|
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
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.
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setColor(java.awt.Color value)
Set the ROI painter base color.
|
void |
setMousePos(Point5D pos)
Deprecated.
Better to retrieve mouse position from the
IcyCanvas object. |
void |
setName(java.lang.String name) |
void |
setOpacity(float value)
Sets the content opacity factor (0 = transparent while 1 means opaque).
|
void |
setSelectedColor(java.awt.Color value)
Deprecated.
Selected color is now automatically calculated
|
void |
setShowName(boolean value)
When set to
true the ROI painter display the ROI name at draw time. |
void |
setStroke(double value)
Set ROI painter stroke.
|
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, painterChanged, propertyChanged, remove, removeOverlayListener, saveOverlaysToXML, setCanBeRemoved, setFixed, setPersistent, setPriority, setReadOnly, setReceiveKeyEventOnHidden, setReceiveMouseEventOnHiddenpublic ROI.ROIPainter()
public double getStroke()
public double getAdjustedStroke(IcyCanvas canvas)
public void setStroke(double value)
public float getOpacity()
public void setOpacity(float value)
public java.awt.Color getFocusedColor()
@Deprecated public java.awt.Color getSelectedColor()
public java.awt.Color getDisplayColor()
public java.awt.Color getColor()
public void setColor(java.awt.Color value)
public boolean getShowName()
true if ROI painter should display the ROI name at draw time.public void setShowName(boolean value)
true the ROI painter display the ROI name at draw time.@Deprecated public void setSelectedColor(java.awt.Color value)
@Deprecated public Point5D.Double getMousePos()
IcyCanvas object.@Deprecated public void setMousePos(Point5D pos)
IcyCanvas object.public void computePriority()
public boolean isReadOnly()
Overlaytrue we cannot anymore modify overlay properties from the GUI.isReadOnly in class Overlaypublic void setName(java.lang.String name)
public void keyPressed(java.awt.event.KeyEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
OverlaykeyPressed in class Overlaye - key eventimagePoint - mouse position (image coordinates)canvas - icy canvaspublic void keyReleased(java.awt.event.KeyEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
OverlaykeyReleased in class Overlaye - key eventimagePoint - mouse position (image coordinates)canvas - icy canvaspublic void mousePressed(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
OverlaymousePressed in class Overlaye - mouse eventimagePoint - mouse position (image coordinates)canvas - icy canvaspublic void mouseReleased(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
OverlaymouseReleased in class Overlaye - mouse eventimagePoint - mouse position (image coordinates)canvas - icy canvaspublic void mouseClick(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
OverlaymouseClick in class Overlaye - mouse eventimagePoint - mouse position (image coordinates)canvas - icy canvaspublic void mouseDrag(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlaypublic void mouseMove(java.awt.event.MouseEvent e, Point5D.Double imagePoint, IcyCanvas canvas)
Overlaypublic void paint(java.awt.Graphics2D g, Sequence sequence, IcyCanvas canvas)
Overlaypublic boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistentloadFromXML in interface XMLPersistentloadFromXML in class Overlaypublic boolean saveToXML(org.w3c.dom.Node node)
XMLPersistentsaveToXML in interface XMLPersistentsaveToXML in class Overlaypublic vtk.vtkProp[] getProps()
VtkPaintergetProps in interface VtkPainterpublic void hideVtkObjects()