Package adams.gui.visualization.core
Class ConfusionMatrixColorGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.core.AbstractColorGradientGenerator
-
- adams.gui.visualization.core.BiColorGenerator
-
- adams.gui.visualization.core.ConfusionMatrixColorGenerator
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,ColorGradientGenerator,ColorGradientGeneratorWithFixedNumberOfColors,Serializable,Comparable
public class ConfusionMatrixColorGenerator extends BiColorGenerator
Generates gradient colors between two colors, with default values suitable for a confusion matrix.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.core.BiColorGenerator
m_Alpha, m_FirstColor, m_NumColors, m_SecondColor
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ConfusionMatrixColorGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ColorgetDefaultFirstColor()Returns the default for the first color.protected ColorgetDefaultSecondColor()Returns the default for the second color.StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.gui.visualization.core.BiColorGenerator
alphaTipText, check, defineOptions, doGenerate, firstColorTipText, getAlpha, getDefaultAlpha, getDefaultNumColors, getFirstColor, getNumColors, getSecondColor, numColorsTipText, secondColorTipText, setAlpha, setFirstColor, setNumColors, setSecondColor
-
Methods inherited from class adams.gui.visualization.core.AbstractColorGradientGenerator
compareTo, equals, forCommandLine, forName, generate, getGenerators, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.gui.visualization.core.ColorGradientGenerator
compareTo, equals, generate, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Overrides:
globalInfoin classBiColorGenerator- Returns:
- a description suitable for displaying in the gui
-
getDefaultFirstColor
protected Color getDefaultFirstColor()
Returns the default for the first color.- Overrides:
getDefaultFirstColorin classBiColorGenerator- Returns:
- the default
-
getDefaultSecondColor
protected Color getDefaultSecondColor()
Returns the default for the second color.- Overrides:
getDefaultSecondColorin classBiColorGenerator- Returns:
- the default
-
-