public interface Overlay extends Data
Dataset
s.
Many (but not all) overlays have an associated ImgLib
RegionOfInterest
allowing iteration over pixel values deemed included
in the overlay.Modifier and Type | Interface and Description |
---|---|
static class |
Overlay.ArrowStyle
Arrow decorations for the start and end.
|
static class |
Overlay.LineStyle
The style used to render the bounding line of the overlay.
|
Modifier and Type | Method and Description |
---|---|
Overlay |
duplicate() |
int |
getAlpha() |
ColorRGB |
getFillColor() |
ColorRGB |
getLineColor() |
Overlay.ArrowStyle |
getLineEndArrowStyle() |
Overlay.ArrowStyle |
getLineStartArrowStyle() |
Overlay.LineStyle |
getLineStyle()
Get the style of the outline line
|
double |
getLineWidth() |
RegionOfInterest |
getRegionOfInterest()
Retrieves the ImgLib region of interest, if any, that knows how to
determine whether a pixel is included in the overlay.
|
void |
move(double[] deltas) |
void |
rebuild()
Informs interested parties that the data object has undergone a major
change, such as the dimensional extents changing.
|
void |
setAlpha(int alpha) |
void |
setFillColor(ColorRGB fillColor) |
void |
setLineColor(ColorRGB lineColor)
Set the color of the outline line of the overlay, if appropriate
|
void |
setLineEndArrowStyle(Overlay.ArrowStyle style) |
void |
setLineStartArrowStyle(Overlay.ArrowStyle style) |
void |
setLineStyle(Overlay.LineStyle style)
Set the style of the outline line of the overlay, if appropriate
|
void |
setLineWidth(double lineWidth)
Set the width of the outline line of the overlay, if appropriate
|
void |
update()
Informs interested parties that the data object has undergone a
non-structural change, such as sample values being updated.
|
decrementReferences, incrementReferences
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
averageScale
dimensionIndex
axes, axis, setAxis
numDimensions
context, getContext, setContext
RegionOfInterest getRegionOfInterest()
int getAlpha()
void setAlpha(int alpha)
alpha
- the opacity of the interior of the overlay, from 0-255ColorRGB getFillColor()
void setFillColor(ColorRGB fillColor)
fillColor
- the fill color for overlays that have an interiorColorRGB getLineColor()
void setLineColor(ColorRGB lineColor)
lineColor
- double getLineWidth()
void setLineWidth(double lineWidth)
lineWidth
- the width to be used when painting lines and shape
borders, in pixels.Overlay.LineStyle getLineStyle()
void setLineStyle(Overlay.LineStyle style)
style
- - style of lineOverlay.ArrowStyle getLineStartArrowStyle()
void setLineStartArrowStyle(Overlay.ArrowStyle style)
style
- the arrow style to be shown at the start of a line or pathOverlay.ArrowStyle getLineEndArrowStyle()
void setLineEndArrowStyle(Overlay.ArrowStyle style)
style
- the arrow style to be shown at the end of a line or pathOverlay duplicate()
void move(double[] deltas)
void update()
update
in interface Data
OverlayUpdatedEvent
void rebuild()
rebuild
in interface Data
OverlayRestructuredEvent
Copyright © 2014–2022 ImageJ. All rights reserved.