Package adams.gui.visualization.core
Class ColorBlind15Provider
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<ColorProvider>
,SizeOfHandler
,ColorProvider
,Serializable
public class ColorBlind15Provider extends AbstractCustomColorProvider
Color provider for color blind people, using 15 colors.
See:
http://mkweb.bcgsc.ca/colorblind/palettes.mhtml
http://mkweb.bcgsc.ca/colorblind/palettes/15.color.blindness.palette.txt
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-color <java.awt.Color> [-color ...] (property: colors) The colors to use. default: #68023f, #008169, #ef0096, #00dcb5, #ffcfe2, #003c86, #9400e6, #009ffa, #ff71fd, #7cfffa, #6a0213, #008607, #f60239, #00e307, #ffdc3d
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.core.AbstractColorProvider
m_AllowDarkening, m_CheckTooDark, m_Colors, m_DefaultColors, m_ExcludedColors, m_FirstIteration, m_Index, m_RecycledColors, MIN_VALUE
-
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 ColorBlind15Provider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Color[]
getDefaultColors()
Returns the default colors to use.String
globalInfo()
Returns a string describing the object.protected void
initialize()
Initializes the members.protected boolean
isDarkeningEnabled()
Returns whether the allow-darkening option is enabled.-
Methods inherited from class adams.gui.visualization.core.AbstractCustomColorProvider
allowDarkeningTipText, colorsTipText, defineOptions, getAllowDarkening, getColors, setAllowDarkening, setColors
-
Methods inherited from class adams.gui.visualization.core.AbstractColorProvider
exclude, finishInit, forCommandLine, forName, next, recycle, resetColors, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractColorProvider
-
getDefaultColors
protected Color[] getDefaultColors()
Returns the default colors to use.- Specified by:
getDefaultColors
in classAbstractCustomColorProvider
- Returns:
- the colors
-
isDarkeningEnabled
protected boolean isDarkeningEnabled()
Returns whether the allow-darkening option is enabled.- Specified by:
isDarkeningEnabled
in classAbstractCustomColorProvider
- Returns:
- true if enabled
-
-