public class RoiOverlay extends Object implements OverlayedImageCanvas.Overlay
Constructor and Description |
---|
RoiOverlay()
Empty constructor
|
RoiOverlay(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) |
void |
setComposite(Composite composite)
Set the composite that will be used to paint this overlay.
|
void |
setRoi(Roi roi) |
String |
toString() |
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(Roi roi)
public void setComposite(Composite composite)
OverlayedImageCanvas.Overlay
setComposite
in interface OverlayedImageCanvas.Overlay
public void setColor(Color color)
Copyright © 2015–2021 Fiji. All rights reserved.