public class RoiListOverlay extends Object implements OverlayedImageCanvas.Overlay
Constructor and Description |
---|
RoiListOverlay()
Empty constructor
|
RoiListOverlay(ArrayList<Roi> roi,
Composite composite,
Color color)
Create a RoiOverlay based on a Roi and a specific color and composite mode.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(Graphics g,
int x,
int y,
double magnification)
Paint this overlay on the given graphic device.
|
void |
setColor(Color color)
Set the color of the ROIs
|
void |
setComposite(Composite composite)
Set the composite to be used in the overlay.
|
void |
setRoi(ArrayList<Roi> roi)
Set the list of ROIs.
|
String |
toString()
Convert the list of ROIs to text.
|
public void paint(Graphics g, int x, int y, double magnification)
OverlayedImageCanvas.Overlay
paint
in interface OverlayedImageCanvas.Overlay
g
- the graphic device provided by the OverlayedImageCanvas
x
- the top-left corner x-coordinate of the image rectangle currently displayed in the OverlayedImageCanvas
y
- the top-left corner y-coordinatemagnification
- the OverlayedImageCanvas
current magnificationpublic void setRoi(ArrayList<Roi> roi)
roi
- list of ROIs to be displayedpublic void setComposite(Composite composite)
setComposite
in interface OverlayedImageCanvas.Overlay
composite
- composite to be used in the overlaypublic void setColor(Color color)
color
- ROI colorCopyright © 2015–2021 Fiji. All rights reserved.