|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object O2Plib.image.RoiList
public class RoiList
Field Summary | |
---|---|
java.awt.Color |
color
working Roi color. |
static int |
DEF_MAX_ROIS
max # of Rois |
int |
maxRoi
max roi, max array size. |
int |
nRoi
current number of ROIs in the roiList[] |
Roi[] |
roiList
Roi list of size [0:nRoi-1] |
Roi |
roiWORKING
Internal "WORKING",ROI_WORKING instance that can be used to set the CW, DBUG or PIXDUMP (not the ND) Rois |
boolean[] |
showRoiFlag
flags for displaying roi |
Constructor Summary | |
---|---|
RoiList()
RoiList() - Constructor using DEF_MAX_ROIS |
|
RoiList(int maxSize)
RoiList() - Constructor where size is specified. |
Method Summary | |
---|---|
boolean |
addRoi(Roi newRoi,
boolean showRoiFlag,
int roiCode,
java.awt.Color color)
addRoi() - add new Roi to Roi list |
boolean |
containsRoi(java.lang.String roiName)
containsRoi() - see if roiName is in RoiList |
void |
setRoiList(int maxSize)
setRoiList() - set up Roi list |
boolean |
setSingleROItoDisplay(int roiCode)
setSingleROItoDisplay() - set one ROI for display |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEF_MAX_ROIS
public int maxRoi
public Roi[] roiList
public boolean[] showRoiFlag
public int nRoi
public java.awt.Color color
public Roi roiWORKING
Constructor Detail |
---|
public RoiList(int maxSize)
maxSize
- is the maximum size of the roiList.public RoiList()
Method Detail |
---|
public void setRoiList(int maxSize)
maxSize
- is the maximum size of the roiList.public boolean setSingleROItoDisplay(int roiCode)
code
- is the ROI_xxxx code found in Sg2showImage classpublic boolean addRoi(Roi newRoi, boolean showRoiFlag, int roiCode, java.awt.Color color)
newRoi
- ROI to add to Roi listshowRoiFlag
- to specify if Roi should be displayednewRoi
- ROI to add to Roi listnewRoi
- ROI to add to Roi listpublic boolean containsRoi(java.lang.String roiName)
roiName
- name of roi to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |