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, waitisEmpty, realMax, realMax, realMin, realMinequals, isAll, maskTypemaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic TextRoiWrapper(TextRoi roi)
public TextRoi getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<TextRoi,RealLocalizable>Roipublic 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 RealMaskand in interface RealMaskRealIntervalpublic RealMaskRealInterval or(RealMaskRealInterval other)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
or in interface RealMaskRealIntervalpublic 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 RealMaskpublic RealMaskRealInterval minus(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
minus in interface MaskPredicate<RealLocalizable>minus in interface RealMaskminus in interface RealMaskRealIntervalpublic RealMaskRealInterval xor(RealMaskRealInterval other)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
xor in interface RealMaskRealIntervalpublic RealMaskRealInterval transform(AffineGet transformToSource)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
transform in interface RealMaskRealIntervalpublic double realMin(int d)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
realMin in interface RealIntervalpublic double realMax(int d)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
realMax in interface RealIntervalpublic 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 RealMaskpublic RealMask xor(Predicate<? super RealLocalizable> other)
Always throws an UnsupportedOperationException. Text is not
technically a ROI.
xor in interface MaskPredicate<RealLocalizable>xor in interface RealMaskpublic 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 EuclideanSpaceCopyright © 2014–2022 ImageJ. All rights reserved.