|
||||||||||
| 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.gui.visualization.image.AbstractImageOverlay
adams.gui.visualization.heatmap.AbstractHeatmapOverlay
adams.gui.visualization.heatmap.CentroidOverlay
public class CentroidOverlay
Paints the centroid's location over the heatmap image.
Valid options are:-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
-enabled (property: enabled) If enabled, this overlay is painted over the image.
-color <java.awt.Color> (property: color) The color for the overlay. default: #ff0000
Centroid,
Serialized Form| Field Summary | |
|---|---|
protected double[] |
m_Centroid
the calculated centroid. |
protected Color |
m_Color
the color to paint the centroid in. |
| Fields inherited from class adams.gui.visualization.heatmap.AbstractHeatmapOverlay |
|---|
m_HeatmapPanel |
| Fields inherited from class adams.gui.visualization.image.AbstractImageOverlay |
|---|
m_Enabled |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
CentroidOverlay()
|
|
| Method Summary | |
|---|---|
protected void |
calcCentroid()
Calculates the centroid. |
String |
colorTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected void |
doPaintOverlay(ImagePanel.PaintPanel panel,
Graphics g)
Paints the overlay over the image. |
Color |
getColor()
Returns the color for the overlay. |
String |
globalInfo()
Returns a string describing the object. |
protected void |
reset()
Resets the overlay. |
void |
setColor(Color value)
Sets the color for the overlay. |
| Methods inherited from class adams.gui.visualization.heatmap.AbstractHeatmapOverlay |
|---|
getHeatmapPanel, paintOverlay, setHeatmapPanel |
| Methods inherited from class adams.gui.visualization.image.AbstractImageOverlay |
|---|
enabledTipText, isEnabled, setEnabled |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, 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 double[] m_Centroid
protected Color m_Color
| Constructor Detail |
|---|
public CentroidOverlay()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractImageOverlayprotected void reset()
reset in class AbstractOptionHandlerpublic void setColor(Color value)
value - the colorpublic Color getColor()
public String colorTipText()
protected void calcCentroid()
protected void doPaintOverlay(ImagePanel.PaintPanel panel,
Graphics g)
doPaintOverlay in class AbstractImageOverlaypanel - 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 | |||||||||