/** Obsolete * @deprecated * @see #getCount * @see #getRoisAsArray * @see #getSelectedIndex */ public List getList() { List awtList = new List(); for (int i=0; i<getCount(); i++) awtList.add((String)listModel.getElementAt(i)); int index = getSelectedIndex(); if (index>=0) awtList.select(index); return awtList; }
if( roi == null && null == RoiManager.getInstance() || null != RoiManager.getInstance() && RoiManager.getInstance().getSelectedIndex() == -1 )
/** Obsolete * @deprecated * @see #getCount * @see #getRoisAsArray * @see #getSelectedIndex */ public List getList() { List awtList = new List(); for (int i=0; i<getCount(); i++) awtList.add((String)listModel.getElementAt(i)); int index = getSelectedIndex(); if (index>=0) awtList.select(index); return awtList; }
countOrIndex = rm.getCount(); else if (cmd.equals("index")) countOrIndex = rm.getSelectedIndex(); else if (cmd.equals("translate")) { rm.translate(dx, dy);
countOrIndex = rm.getCount(); else if (cmd.equals("index")) countOrIndex = rm.getSelectedIndex(); else if (cmd.equals("translate")) { rm.translate(dx, dy);