|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.transformer.AbstractTransformer
adams.flow.transformer.AbstractInteractiveTransformerDialog
adams.flow.transformer.PixelSelector
public class PixelSelector
Allows the user to select pixels. How the pixels are interpreted depends on the actions selected.
In addition, overlays that visualize the information stored in the image's report can be selected as well. The overlays offer information on what actions generate the data that is required for proper visualization.
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: PixelSelector
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-width <int> (property: width) The width of the dialog. default: 800 minimum: 1
-height <int> (property: height) The height of the dialog. default: 600 minimum: 1
-x <int> (property: x) The X position of the dialog (>=0: absolute, -1: left, -2: center, -3: right ). default: -1 minimum: -3
-y <int> (property: y) The Y position of the dialog (>=0: absolute, -1: top, -2: center, -3: bottom ). default: -1 minimum: -3
-stop-if-canceled (property: stopFlowIfCanceled) If enabled, the flow gets stopped in case the user cancels the dialog.
-custom-stop-message <java.lang.String> (property: customStopMessage) The custom stop message to use in case a user cancelation stops the flow (default is the full name of the actor) default:
-action <adams.flow.transformer.pixelselector.AbstractPixelSelectorAction> [-action ...] (property: actions) The overlays available to the user from the popup menu of the viewer. default:
-overlay <adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay> [-overlay ...] (property: overlays) The image overlays to use in the viewer. default:
-splitter-pos <int> (property: splitterPosition) The initial position of the splitter in the viewer panel. default: 500 minimum: 1
| Field Summary | |
|---|---|
protected AbstractPixelSelectorAction[] |
m_Actions
the actions that are available from the popup menu. |
protected Boolean |
m_Approved
whether the user approved (or canceled) the dialog. |
protected AbstractPixelSelectorOverlay[] |
m_Overlays
the overlays to use. |
protected int |
m_SplitterPosition
the position of the splitter. |
| Fields inherited from class adams.flow.transformer.AbstractInteractiveTransformerDialog |
|---|
m_CustomStopMessage, m_Dialog, m_Height, m_Panel, m_ShortTitle, m_StopFlowIfCanceled, m_SuccessfulInteraction, m_Width, m_X, m_Y |
| Fields inherited from class adams.flow.transformer.AbstractTransformer |
|---|
BACKUP_INPUT, BACKUP_OUTPUT, m_InputToken, m_OutputToken |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
PixelSelector()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class that the consumer accepts. |
String |
actionsTipText()
Returns the tip text for this property. |
void |
clearPanel()
Clears the content of the panel. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
boolean |
doInteract()
Performs the interaction with the user. |
Class[] |
generates()
Returns the class of objects that it generates. |
AbstractPixelSelectorAction[] |
getActions()
Returns the available popup actions. |
protected int |
getDefaultSplitterPosition()
Returns the default position for the splitter. |
AbstractPixelSelectorOverlay[] |
getOverlays()
Returns the available image overlays. |
int |
getSplitterPosition()
Returns the initial position of the splitter in the viewer panel. |
String |
globalInfo()
Returns a string describing the object. |
protected BasePanel |
newPanel()
Creates the panel to display in the dialog. |
String |
overlaysTipText()
Returns the tip text for this property. |
void |
setActions(AbstractPixelSelectorAction[] value)
Sets the available popup actions. |
void |
setOverlays(AbstractPixelSelectorOverlay[] value)
Sets the available image overlays. |
void |
setSplitterPosition(int value)
Sets the initial position of the splitter in the viewer panel. |
String |
setUp()
Initializes the item for flow execution. |
String |
splitterPositionTipText()
Returns the tip text for this property. |
void |
updateProvenance(ProvenanceContainer cont)
Updates the provenance information in the provided container. |
| Methods inherited from class adams.flow.transformer.AbstractInteractiveTransformerDialog |
|---|
cleanUp, cleanUpGUI, createDialog, createTitle, customStopMessageTipText, doCreateDialog, getCustomStopMessage, getDefaultHeight, getDefaultWidth, getDefaultX, getDefaultY, getDialog, getHeight, getPanel, getQuickInfo, getShortTitle, getStopFlowIfCanceled, getWidth, getX, getY, heightTipText, initialize, postCreateDialog, preCreateDialog, reset, setCustomStopMessage, setHeight, setShortTitle, setStopFlowIfCanceled, setWidth, setX, setY, shortTitleTipText, stopExecution, stopFlowIfCanceledTipText, widthTipText, xTipText, yTipText |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
backupState, execute, hasPendingOutput, input, output, postExecute, restoreState, wrapUp |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AbstractPixelSelectorAction[] m_Actions
protected AbstractPixelSelectorOverlay[] m_Overlays
protected int m_SplitterPosition
protected Boolean m_Approved
| Constructor Detail |
|---|
public PixelSelector()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractInteractiveTransformerDialogpublic void setActions(AbstractPixelSelectorAction[] value)
value - the actionspublic AbstractPixelSelectorAction[] getActions()
public String actionsTipText()
public void setOverlays(AbstractPixelSelectorOverlay[] value)
value - the overlayspublic AbstractPixelSelectorOverlay[] getOverlays()
public String overlaysTipText()
protected int getDefaultSplitterPosition()
public void setSplitterPosition(int value)
value - the positionpublic int getSplitterPosition()
public String splitterPositionTipText()
public Class[] accepts()
public Class[] generates()
public void clearPanel()
clearPanel in class AbstractInteractiveTransformerDialogprotected BasePanel newPanel()
newPanel in class AbstractInteractiveTransformerDialogpublic String setUp()
setUp in class AbstractActorpublic boolean doInteract()
doInteract in interface InteractiveActordoInteract in class AbstractInteractiveTransformerDialogprotected String doExecute()
doExecute in class AbstractInteractiveTransformerDialogpublic void updateProvenance(ProvenanceContainer cont)
cont - the provenance container to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||