ICY Version 1.0.1.0
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

icy.roi.ROI Class Reference

Inheritance diagram for icy.roi.ROI:
icy.common.IcyChangedListener icy.file.xml.XMLPersistent icy.roi.ROI2D icy.roi.ROI3D icy.roi.ROI4D icy.roi.ROIEdge icy.roi.ROI2DArea icy.roi.ROI2DShape icy.roi.ROI2DLine icy.roi.ROI2DPoint icy.roi.ROI2DPolygon icy.roi.ROI2DPolyLine icy.roi.ROI2DRectShape icy.roi.ROI2DEllipse icy.roi.ROI2DRectangle

List of all members.

Classes

class  ROIPainter

Public Member Functions

void attachTo (Sequence sequence)
void detachFrom (Sequence sequence)
void detachFromAll ()
boolean isAttached (Sequence sequence)
Sequence getFirstSequence ()
ArrayList< SequencegetSequences ()
void delete ()
String getClassName ()
String getSimpleClassName ()
AbstractPainter getPainter ()
double getStroke ()
double getAdjustedStroke (IcyCanvas canvas, double strk)
double getAdjustedStroke (IcyCanvas canvas)
void setStroke (double value)
Color getDisplayColor ()
Color getColor ()
void setColor (Color value)
Color getSelectedColor ()
void setSelectedColor (Color value)
String getName ()
void setName (String value)
boolean isFocused ()
void setFocused (boolean value)
void setInternalFocused (boolean value)
boolean isSelected ()
void setSelected (boolean value, boolean exclusive)
void internalUnselect ()
void internalSelect ()
void setMousePos (Point2D pos)
boolean loadFromXML (Node node)
boolean saveToXML (Node node)
void changed ()
void addListener (ROIListener listener)
void removeListener (ROIListener listener)
void beginUpdate ()
void endUpdate ()
boolean isUpdating ()
void onChanged (EventHierarchicalChecker object)

Static Public Member Functions

static ROI create (String className, Sequence seq, Point2D imagePoint, boolean creation)
static ROI createFromXML (Node node)
static ArrayList< String > getRoiTypes (ArrayList< ROI > rois)
static double canvasToImageDeltaX (IcyCanvas canvas, int value)
static double canvasToImageLogDeltaX (IcyCanvas canvas, double value, double logFactor)
static double canvasToImageLogDeltaX (IcyCanvas canvas, double value)
static double canvasToImageLogDeltaX (IcyCanvas canvas, int value, double logFactor)
static double canvasToImageLogDeltaX (IcyCanvas canvas, int value)
static double canvasToImageDeltaY (IcyCanvas canvas, int value)
static double canvasToImageLogDeltaY (IcyCanvas canvas, double value, double logFactor)
static double canvasToImageLogDeltaY (IcyCanvas canvas, double value)
static double canvasToImageLogDeltaY (IcyCanvas canvas, int value, double logFactor)
static double canvasToImageLogDeltaY (IcyCanvas canvas, int value)

Protected Member Functions

void finalize () throws Throwable
abstract ROIPainter createPainter ()

Protected Attributes

final Point2D mousePos
final EventListenerList listeners
final UpdateEventHandler updater

Member Function Documentation

void icy.roi.ROI.addListener ( ROIListener  listener)

Add a listener

Parameters:
listener
static double icy.roi.ROI.canvasToImageDeltaX ( IcyCanvas  canvas,
int  value 
) [static]

Convert a canvas X coefficient into image X coefficient

static double icy.roi.ROI.canvasToImageDeltaY ( IcyCanvas  canvas,
int  value 
) [static]

Convert a canvas Y coefficient into image Y coefficient

static double icy.roi.ROI.canvasToImageLogDeltaX ( IcyCanvas  canvas,
double  value,
double  logFactor 
) [static]

Convert a canvas X coefficient into image X log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaX ( IcyCanvas  canvas,
int  value 
) [static]

Convert a canvas X coefficient into image X log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaX ( IcyCanvas  canvas,
double  value 
) [static]

Convert a canvas X coefficient into image X log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaX ( IcyCanvas  canvas,
int  value,
double  logFactor 
) [static]

Convert a canvas X coefficient into image X log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaY ( IcyCanvas  canvas,
double  value,
double  logFactor 
) [static]

Convert a canvas Y coefficient into image Y log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaY ( IcyCanvas  canvas,
double  value 
) [static]

Convert a canvas Y coefficient into image Y log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaY ( IcyCanvas  canvas,
int  value,
double  logFactor 
) [static]

Convert a canvas Y coefficient into image Y log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

static double icy.roi.ROI.canvasToImageLogDeltaY ( IcyCanvas  canvas,
int  value 
) [static]

Convert a canvas Y coefficient into image Y log coefficient
The conversion is still affected by zoom ratio but in a logarithm form

void icy.roi.ROI.changed ( )

called when ROI has changed its bounds

static ROI icy.roi.ROI.create ( String  className,
Sequence  seq,
Point2D  imagePoint,
boolean  creation 
) [static]

Create a ROI from its tool command name

Parameters:
classNameroi class name
seqsequence object
imagePointposition in image coordinates
creationspecify if roi is created in "creation mode"
Returns:
ROI (null if command is an incorrect ROI command name)
static ROI icy.roi.ROI.createFromXML ( Node  node) [static]

Create a ROI from a xml definition

Parameters:
nodexml node defining the roi
Returns:
ROI (null if node is an incorrect ROI definition)
Color icy.roi.ROI.getColor ( )
Returns:
the Color
Color icy.roi.ROI.getDisplayColor ( )
Returns:
the display color
Sequence icy.roi.ROI.getFirstSequence ( )

Return first sequence where ROI is attached

String icy.roi.ROI.getName ( )
Returns:
the name
static ArrayList<String> icy.roi.ROI.getRoiTypes ( ArrayList< ROI rois) [static]

Return list of different ROI type (ROI class name) from the specified ROI list

Color icy.roi.ROI.getSelectedColor ( )
Returns:
the selectedColor
ArrayList<Sequence> icy.roi.ROI.getSequences ( )

Return sequences where ROI is attached

boolean icy.roi.ROI.isFocused ( )
Returns:
the focused
boolean icy.roi.ROI.isSelected ( )
Returns:
the selected
boolean icy.roi.ROI.loadFromXML ( Node  node)
void icy.roi.ROI.onChanged ( EventHierarchicalChecker  object)

fire changed event

Implements icy.common.IcyChangedListener.

Reimplemented in icy.roi.ROI2DShape.

void icy.roi.ROI.removeListener ( ROIListener  listener)

Remove a listener

Parameters:
listener
boolean icy.roi.ROI.saveToXML ( Node  node)
void icy.roi.ROI.setColor ( Color  value)
Parameters:
valuethe Color to set
void icy.roi.ROI.setFocused ( boolean  value)
Parameters:
valuethe focused to set
void icy.roi.ROI.setName ( String  value)
Parameters:
valuethe name to set
void icy.roi.ROI.setSelected ( boolean  value,
boolean  exclusive 
)
Parameters:
valuethe selected to set
exclusiveexclusive selection (only one selected ROI per sequence)

Reimplemented in icy.roi.ROI2DShape.

void icy.roi.ROI.setSelectedColor ( Color  value)
Parameters:
valuethe selectedColor to set

Member Data Documentation

final EventListenerList icy.roi.ROI.listeners [protected]

listeners

final Point2D icy.roi.ROI.mousePos [protected]

last mouse position (image coordinates)

internal updater


The documentation for this class was generated from the following file:
 All Classes Functions Variables