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.Overlaypaint in interface OverlayedImageCanvas.Overlayg - the graphic device provided by the OverlayedImageCanvasx - the top-left corner x-coordinate of the image rectangle currently displayed in the OverlayedImageCanvasy - the top-left corner y-coordinatemagnification - the OverlayedImageCanvas current magnificationpublic void setRoi(Roi roi)
public void setComposite(Composite composite)
OverlayedImageCanvas.OverlaysetComposite in interface OverlayedImageCanvas.Overlaypublic void setColor(Color color)
Copyright © 2015–2021 Fiji. All rights reserved.