public class ROIPropertyDescriptorsPlugin extends Plugin implements PluginROIDescriptor
Modifier and Type | Field and Description |
---|---|
static ROIColorDescriptor |
colorDescriptor |
static ROIGroupIdDescriptor |
groupIdDescriptor |
static ROIIconDescriptor |
iconDescriptor |
static java.lang.String |
ID_COLOR |
static java.lang.String |
ID_ICON |
static java.lang.String |
ID_NAME |
static java.lang.String |
ID_OPACITY |
static java.lang.String |
ID_READONLY |
static ROINameDescriptor |
nameDescriptor |
static ROIOpacityDescriptor |
opacityDescriptor |
static ROIReadOnlyDescriptor |
readOnlyDescriptor |
Constructor and Description |
---|
ROIPropertyDescriptorsPlugin() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ROIDescriptor,java.lang.Object> |
compute(ROI roi,
Sequence sequence)
Computes the descriptor(s) (declared in the
PluginROIDescriptor.getDescriptors() ) on the specified ROI. |
java.util.List<ROIDescriptor> |
getDescriptors()
Returns the list of
ROIDescriptor available in this plug-in. |
addIcyFrame, addSequence, getActiveImage, getActiveSequence, getActiveViewer, getDescriptor, getFocusedImage, getFocusedSequence, getFocusedViewer, getIconResource, getImageResource, getInstallFolder, getName, getOwnerClassName, getPlugin, getPreferences, getPreferencesRoot, getResource, getResourceAsStream, getResources, getSequences, isBundled, loadLibrary, prepareLibrary, removeSequence, report, toString
public static final java.lang.String ID_ICON
public static final java.lang.String ID_NAME
public static final java.lang.String ID_COLOR
public static final java.lang.String ID_OPACITY
public static final java.lang.String ID_READONLY
public static final ROIIconDescriptor iconDescriptor
public static final ROINameDescriptor nameDescriptor
public static final ROIGroupIdDescriptor groupIdDescriptor
public static final ROIColorDescriptor colorDescriptor
public static final ROIOpacityDescriptor opacityDescriptor
public static final ROIReadOnlyDescriptor readOnlyDescriptor
public ROIPropertyDescriptorsPlugin()
public java.util.List<ROIDescriptor> getDescriptors()
PluginROIDescriptor
ROIDescriptor
available in this plug-in.Listresult = ArrayList (); result.add(new ROIDescriptor("area", Double.class)); result.add(new ROIDescriptor("volume", Double.class)); result.add(new ROIDescriptor("...", Double.class));
getDescriptors
in interface PluginROIDescriptor
public java.util.Map<ROIDescriptor,java.lang.Object> compute(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
PluginROIDescriptor
PluginROIDescriptor.getDescriptors()
) on the specified ROI.null
for some of the
descriptor results.compute
method for
each descriptor separately as some descriptor can group their calculation.compute
in interface PluginROIDescriptor
roi
- the ROI on which the descriptor(s) should be computedsequence
- an optional sequence where the pixel informations can be retrievednull
if the
descriptor cannot be computed).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.