public class ROINameDescriptor extends ROIDescriptor
ROIDescriptor)| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
| Constructor and Description |
|---|
ROINameDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
compute(ROI roi,
Sequence sequence)
Computes the descriptor on the specified ROI and return the result.
|
java.lang.String |
getDescription()
Returns a single line description (used as tooltip) for this descriptor
|
static java.lang.String |
getName(ROI roi)
Returns ROI name
|
boolean |
needRecompute(ROIEvent change)
Returns
true if this descriptor need to be recomputed when the specified ROI change event happen. |
computeDescriptor, computeDescriptor, equals, getDescriptor, getDescriptor, getDescriptors, getId, getName, getType, getUnit, hashCode, needRecompute, separateChannel, toStringpublic static final java.lang.String ID
public ROINameDescriptor()
public java.lang.String getDescription()
ROIDescriptorgetDescription in class ROIDescriptorpublic boolean needRecompute(ROIEvent change)
ROIDescriptortrue if this descriptor need to be recomputed when the specified ROI change event happen.true on ROI content change, override this method if a descriptor need a
specific implementation.needRecompute in class ROIDescriptorROIDescriptor.compute(ROI, Sequence)public java.lang.Object compute(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
ROIDescriptorcompute in class ROIDescriptorroi - the ROI on which the descriptor(s) should be computedsequence - an optional sequence where the pixel informations can be retrieved (see ROIDescriptor.separateChannel())java.lang.UnsupportedOperationException - if the type of the given ROI is not supported by this descriptor, or if sequence is
null while the calculation requires it