public class TextRoiWrapper extends Object implements IJRealRoiWrapper<TextRoi>
IJRealRoiWrapper
which wraps a TextRoi
as a
RealMaskRealInterval
.
Technically text is not considered a ROI, as such
UnsupportedOperationException
is thrown for the majority of these
methods. This wrapper is only here to provide a path for getting text from
ImageJ 1.x and into OMERO. It should NOT be used for other
purposes.
Constructor and Description |
---|
TextRoiWrapper(TextRoi roi) |
Modifier and Type | Method and Description |
---|---|
RealMaskRealInterval |
and(Predicate<? super RealLocalizable> other) |
BoundaryType |
boundaryType() |
TextRoi |
getRoi()
Returns the backing ImageJ 1.x
Roi . |
KnownConstant |
knownConstant() |
RealMaskRealInterval |
minus(Predicate<? super RealLocalizable> other) |
RealMaskRealInterval |
negate() |
int |
numDimensions() |
RealMask |
or(Predicate<? super RealLocalizable> other) |
RealMaskRealInterval |
or(RealMaskRealInterval other) |
double |
realMax(int d) |
double |
realMin(int d) |
boolean |
test(RealLocalizable t) |
RealMaskRealInterval |
transform(AffineGet transformToSource) |
RealMask |
transform(RealTransform transformToSource) |
RealMask |
xor(Predicate<? super RealLocalizable> other) |
RealMaskRealInterval |
xor(RealMaskRealInterval other) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty, realMax, realMax, realMin, realMin
equals, isAll, maskType
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public TextRoiWrapper(TextRoi roi)
public TextRoi getRoi()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<TextRoi,RealLocalizable>
Roi
public RealMaskRealInterval and(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
and
in interface Predicate<RealLocalizable>
and
in interface MaskPredicate<RealLocalizable>
and
in interface RealMask
and
in interface RealMaskRealInterval
public RealMaskRealInterval or(RealMaskRealInterval other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
or
in interface RealMaskRealInterval
public RealMaskRealInterval negate()
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
negate
in interface Predicate<RealLocalizable>
negate
in interface MaskPredicate<RealLocalizable>
negate
in interface RealMask
public RealMaskRealInterval minus(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
minus
in interface MaskPredicate<RealLocalizable>
minus
in interface RealMask
minus
in interface RealMaskRealInterval
public RealMaskRealInterval xor(RealMaskRealInterval other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
xor
in interface RealMaskRealInterval
public RealMaskRealInterval transform(AffineGet transformToSource)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
transform
in interface RealMaskRealInterval
public double realMin(int d)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
realMin
in interface RealInterval
public double realMax(int d)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
realMax
in interface RealInterval
public RealMask or(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
or
in interface Predicate<RealLocalizable>
or
in interface MaskPredicate<RealLocalizable>
or
in interface RealMask
public RealMask xor(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
xor
in interface MaskPredicate<RealLocalizable>
xor
in interface RealMask
public RealMask transform(RealTransform transformToSource)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
public BoundaryType boundaryType()
This does not throw an UnsupportedOperationException
as it is
needed for the conversions.
boundaryType
in interface MaskPredicate<RealLocalizable>
public KnownConstant knownConstant()
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
knownConstant
in interface MaskPredicate<RealLocalizable>
public boolean test(RealLocalizable t)
Always throws an UnsupportedOperationException
. Text is not
technically a ROI.
test
in interface Predicate<RealLocalizable>
public int numDimensions()
This does not throw an UnsupportedOperationException
as it is
needed for the conversions.
numDimensions
in interface IJRoiWrapper<TextRoi,RealLocalizable>
numDimensions
in interface EuclideanSpace
Copyright © 2014–2022 ImageJ. All rights reserved.