|
||||||||||
| 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.transformer.pixelselector.AbstractPixelSelectorOverlay
adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay
adams.flow.transformer.pixelselector.ClassificationOverlay
public class ClassificationOverlay
Highlights the chosen classifications.
Some actions that generate data for this overlay:
adams.flow.transformer.pixelselector.AddClassification
-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
-color <java.awt.Color> (property: color) The color to use for the overlay. default: #ff0000
-show-index (property: showIndex) If enabled, the index is shown as part of the text accompanying the location of the pixel.
-show-label (property: showLabel) If enabled, the classification label is shown as part of the text accompanying the location of the pixel.
| Field Summary | |
|---|---|
protected boolean |
m_ShowIndex
whether to display the index. |
protected boolean |
m_ShowLabel
whether to display the label. |
| Fields inherited from class adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay |
|---|
m_Color |
| Fields inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay |
|---|
m_Image |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
ClassificationOverlay()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected void |
doPaintOverlay(ImagePanel.PaintPanel panel,
Graphics g)
Paints the actual overlay over the image. |
protected Integer[] |
getClassificationIndices()
Returns the classification indices. |
protected String |
getGlobalInfo()
Returns a string describing the object. |
protected Point |
getPixelLocation(int index)
Returns the pixel location to paint. |
boolean |
getShowIndex()
Returns whether the index is shown. |
boolean |
getShowLabel()
Returns whether the label is shown. |
Class[] |
getSuggestedActions()
Returns some actions that generate data for this overlay. |
void |
setShowIndex(boolean value)
Sets whether to show the index. |
void |
setShowLabel(boolean value)
Sets whether to show the label. |
String |
showIndexTipText()
Returns the tip text for this property. |
String |
showLabelTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.flow.transformer.pixelselector.AbstractSingleColorPixelSelectorOverlay |
|---|
colorTipText, getColor, getDefaultColor, setColor |
| Methods inherited from class adams.flow.transformer.pixelselector.AbstractPixelSelectorOverlay |
|---|
getImage, globalInfo, paintOverlay, setImage, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_ShowIndex
protected boolean m_ShowLabel
| Constructor Detail |
|---|
public ClassificationOverlay()
| Method Detail |
|---|
protected String getGlobalInfo()
getGlobalInfo in class AbstractPixelSelectorOverlaypublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractSingleColorPixelSelectorOverlaypublic void setShowIndex(boolean value)
value - if true then the index is displayedpublic boolean getShowIndex()
public String showIndexTipText()
public void setShowLabel(boolean value)
value - if true then the label is displayedpublic boolean getShowLabel()
public String showLabelTipText()
public Class[] getSuggestedActions()
getSuggestedActions in class AbstractPixelSelectorOverlayprotected Integer[] getClassificationIndices()
protected Point getPixelLocation(int index)
index - the pixel location
protected void doPaintOverlay(ImagePanel.PaintPanel panel,
Graphics g)
doPaintOverlay in class AbstractPixelSelectorOverlaypanel - the panel this overlay is forg - the graphics context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||