|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectij.gui.Overlay
public class Overlay
An Overlay is a list of Rois that can be drawn non-destructively on an Image.
| Constructor Summary | |
|---|---|
Overlay()
Constructs an empty Overlay. |
|
Overlay(Roi roi)
Constructs an Overlay and adds the specified Roi. |
|
| Method Summary | |
|---|---|
void |
add(Roi roi)
Adds an Roi to this Overlay. |
void |
addElement(Roi roi)
Adds an Roi to this Overlay. |
void |
clear()
Removes all the Rois in this Overlay. |
boolean |
contains(Roi roi)
Returns 'true' if this Overlay contains the specified Roi. |
Overlay |
create()
Returns a new Overlay that has the same properties as this one. |
void |
crop(int firstSlice,
int lastSlice)
Removes ROIs having positions outside of the interval defined by firstSlice and lastSlice. |
void |
crop(int firstC,
int lastC,
int firstZ,
int lastZ,
int firstT,
int lastT)
Removes ROIs having a C, Z or T coordinate outside the volume defined by firstC, lastC, firstZ, lastZ, firstT and lastT. |
Overlay |
crop(Rectangle bounds)
|
void |
drawBackgrounds(boolean b)
|
void |
drawLabels(boolean b)
|
void |
drawNames(boolean b)
|
Overlay |
duplicate()
Returns a clone of this Overlay. |
Roi |
get(int index)
Returns the Roi with the specified index or null if the index is invalid. |
boolean |
getDrawBackgrounds()
|
boolean |
getDrawLabels()
|
boolean |
getDrawNames()
|
int |
getIndex(String name)
Returns the index of the Roi with the specified name, or -1 if not found. |
Color |
getLabelColor()
|
Font |
getLabelFont()
|
boolean |
isCalibrationBar()
|
void |
remove(int index)
Removes the Roi with the specified index from this Overlay. |
void |
remove(Roi roi)
Removes the specified Roi from this Overlay. |
void |
setFillColor(Color color)
Sets the fill color of all the Rois in this overlay. |
void |
setIsCalibrationBar(boolean b)
|
void |
setLabelColor(Color c)
|
void |
setLabelFont(Font font)
|
void |
setStrokeColor(Color color)
Sets the stroke color of all the Rois in this overlay. |
int |
size()
Returns the number of Rois in this Overlay. |
Roi[] |
toArray()
Returns on array containing the Rois in this Overlay. |
String |
toString()
|
void |
translate(double dx,
double dy)
Moves all the Rois in this overlay. |
void |
translate(int dx,
int dy)
Moves all the ROIs in this overlay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Overlay()
public Overlay(Roi roi)
| Method Detail |
|---|
public void add(Roi roi)
public void addElement(Roi roi)
public void remove(int index)
public void remove(Roi roi)
public void clear()
public Roi get(int index)
public int getIndex(String name)
public boolean contains(Roi roi)
public int size()
public Roi[] toArray()
public void setStrokeColor(Color color)
public void setFillColor(Color color)
public void translate(int dx,
int dy)
public void translate(double dx,
double dy)
public Overlay crop(Rectangle bounds)
public void crop(int firstSlice,
int lastSlice)
public void crop(int firstC,
int lastC,
int firstZ,
int lastZ,
int firstT,
int lastT)
public Overlay create()
public Overlay duplicate()
public String toString()
toString in class Objectpublic void drawLabels(boolean b)
public boolean getDrawLabels()
public void drawNames(boolean b)
public boolean getDrawNames()
public void drawBackgrounds(boolean b)
public boolean getDrawBackgrounds()
public void setLabelColor(Color c)
public Color getLabelColor()
public void setLabelFont(Font font)
public Font getLabelFont()
public void setIsCalibrationBar(boolean b)
public boolean isCalibrationBar()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||