|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
adams.gui.action.AbstractBaseAction
adams.flow.transformer.pixelselector.AbstractPixelSelectorAction
adams.flow.transformer.pixelselector.AddClassification
public class AddClassification
Allows the user to select a pixel location and add a corresponding classification for it.
Stores the location with prefix 'Pixel.X.' and 'Pixel.Y.' and the classification using 'Classification.' as prefix.
-label <adams.core.base.BaseString> [-label ...] (property: labels) The labels to offer the user for classifying the pixel. default:
-remember-last-selection (property: rememberLastSelection) If enabled, the last selected label will get selected by default the next time this action is chosen.
| Field Summary | |
|---|---|
static String |
CLASSIFICATION
the classification prefix. |
protected BaseString[] |
m_Labels
the classification labels to use. |
protected boolean |
m_RememberLastSelection
whether to remember the last selection. |
static String |
PIXEL_X
the pixel location X prefix. |
static String |
PIXEL_Y
the pixel location Y prefix. |
| Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction |
|---|
m_OptionManager, MOUSE_POSITION, PANEL, PIXEL_POSITION |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
AddClassification()
|
|
| Method Summary | |
|---|---|
String |
check()
Performs a check on the setup. |
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doProcessAction(ActionEvent e)
Reacts to the action event. |
BaseString[] |
getLabels()
Returns the available classification labels. |
protected int |
getNextClassificationIndex(Report report)
Returns the next free classification index. |
boolean |
getRememberLastSelection()
Returns whether to remmeber the last selected label. |
protected String |
getTitle()
Returns the title of the action (used as menu item text). |
String |
globalInfo()
Returns a string describing the object. |
String |
labelsTipText()
Returns the tip text for this property. |
String |
rememberLastSelectionTipText()
Returns the tip text for this property. |
void |
setLabels(BaseString[] value)
Sets the available classification labels. |
void |
setRememberLastSelection(boolean value)
Sets whether to remember the last selected label. |
| Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorAction |
|---|
actionPerformed, cleanUpOptions, destroy, finishInit, getMousePosition, getOptionManager, getPanel, getPixelPosition, hasMousePosition, hasPanel, hasPixelPosition, initialize, newOptionManager, reset, setMousePosition, setPanel, setPixelPosition, toCommandLine, toString |
| Methods inherited from class adams.gui.action.AbstractBaseAction |
|---|
getAccelerator, getIcon, getMnemonic, getName, getToolTipText, hasAccelerator, hasMnemonic, hasToolTipText, isSelected, setAccelerator, setIcon, setMnemonic, setName, setSelected, setToolTipText |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PIXEL_X
public static final String PIXEL_Y
public static final String CLASSIFICATION
protected BaseString[] m_Labels
protected boolean m_RememberLastSelection
| Constructor Detail |
|---|
public AddClassification()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractPixelSelectorActionprotected String getTitle()
getTitle in class AbstractPixelSelectorActionpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractPixelSelectorActionpublic void setLabels(BaseString[] value)
value - the labelspublic BaseString[] getLabels()
public String labelsTipText()
public void setRememberLastSelection(boolean value)
value - true if to rememberpublic boolean getRememberLastSelection()
public String rememberLastSelectionTipText()
protected int getNextClassificationIndex(Report report)
report - the report to check against
protected boolean doProcessAction(ActionEvent e)
doProcessAction in class AbstractPixelSelectorActione - the event
public String check()
check in class AbstractPixelSelectorAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||