public abstract class AbstractOverlay extends AbstractData implements Overlay
Overlay
implementations.Overlay.ArrowStyle, Overlay.LineStyle
Constructor and Description |
---|
AbstractOverlay(Context context,
RealInterval interval) |
AbstractOverlay(RealInterval interval) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Informs interested parties that the data object is no longer relevant and
should be deleted.
|
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.
|
int |
numDimensions() |
void |
readExternal(ObjectInput in) |
void |
realMax(double[] max) |
double |
realMax(int d) |
void |
realMax(RealPositionable max) |
void |
realMin(double[] min) |
double |
realMin(int d) |
void |
realMin(RealPositionable min) |
void |
rebuild()
Informs interested parties that the data object has undergone a major
change, such as the dimensional extents changing.
|
protected void |
register()
Informs interested parties that the data object has become relevant and
should be registered.
|
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 lineStyle)
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.
|
void |
writeExternal(ObjectOutput out) |
compareTo, context, decrementReferences, getContext, getName, incrementReferences, publish, setContext, setName, toString
averageScale
axes, axis, setAxis
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decrementReferences, incrementReferences
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
averageScale
dimensionIndex
axes, axis, setAxis
context, getContext, setContext
public AbstractOverlay(RealInterval interval)
public AbstractOverlay(Context context, RealInterval interval)
protected void register()
AbstractData
register
in class AbstractData
public void delete()
AbstractData
delete
in class AbstractData
public RegionOfInterest getRegionOfInterest()
Overlay
getRegionOfInterest
in interface Overlay
public int getAlpha()
public void setAlpha(int alpha)
public ColorRGB getFillColor()
getFillColor
in interface Overlay
public void setFillColor(ColorRGB fillColor)
setFillColor
in interface Overlay
fillColor
- the fill color for overlays that have an interiorpublic ColorRGB getLineColor()
getLineColor
in interface Overlay
public void setLineColor(ColorRGB lineColor)
Overlay
setLineColor
in interface Overlay
public double getLineWidth()
getLineWidth
in interface Overlay
public void setLineWidth(double lineWidth)
Overlay
setLineWidth
in interface Overlay
lineWidth
- the width to be used when painting lines and shape
borders, in pixels.public Overlay.LineStyle getLineStyle()
Overlay
getLineStyle
in interface Overlay
public void setLineStyle(Overlay.LineStyle lineStyle)
Overlay
setLineStyle
in interface Overlay
lineStyle
- - style of linepublic Overlay.ArrowStyle getLineStartArrowStyle()
getLineStartArrowStyle
in interface Overlay
public void setLineStartArrowStyle(Overlay.ArrowStyle style)
setLineStartArrowStyle
in interface Overlay
style
- the arrow style to be shown at the start of a line or pathpublic Overlay.ArrowStyle getLineEndArrowStyle()
getLineEndArrowStyle
in interface Overlay
public void setLineEndArrowStyle(Overlay.ArrowStyle style)
setLineEndArrowStyle
in interface Overlay
style
- the arrow style to be shown at the end of a line or pathpublic void update()
Overlay
update
in interface Data
update
in interface Overlay
OverlayUpdatedEvent
public void rebuild()
Overlay
rebuild
in interface Data
rebuild
in interface Overlay
OverlayRestructuredEvent
public int numDimensions()
numDimensions
in interface EuclideanSpace
numDimensions
in class AbstractAnnotatedSpace<CalibratedAxis>
public double realMin(int d)
realMin
in interface RealInterval
realMin
in class AbstractCalibratedRealInterval<CalibratedAxis>
public void realMin(double[] min)
realMin
in interface RealInterval
realMin
in class AbstractCalibratedRealInterval<CalibratedAxis>
public void realMin(RealPositionable min)
realMin
in interface RealInterval
realMin
in class AbstractCalibratedRealInterval<CalibratedAxis>
public double realMax(int d)
realMax
in interface RealInterval
realMax
in class AbstractCalibratedRealInterval<CalibratedAxis>
public void realMax(double[] max)
realMax
in interface RealInterval
realMax
in class AbstractCalibratedRealInterval<CalibratedAxis>
public void realMax(RealPositionable max)
realMax
in interface RealInterval
realMax
in class AbstractCalibratedRealInterval<CalibratedAxis>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractData
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractData
IOException
ClassNotFoundException
Copyright © 2014–2022 ImageJ. All rights reserved.