Package adams.gui.core.spreadsheettable
Class AbstractColoredCellRenderingCustomizer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheettable.AbstractCellRenderingCustomizer
-
- adams.gui.core.spreadsheettable.AbstractColoredCellRenderingCustomizer
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,CellRenderingCustomizer
,Serializable
- Direct Known Subclasses:
DefaultCellRenderingCustomizer
public abstract class AbstractColoredCellRenderingCustomizer extends AbstractCellRenderingCustomizer
Ancestor for cell rendering customizers with predefined foreground/background colors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
m_BackgroundNegative
the custom background color for negative values.protected Color
m_BackgroundPositive
the custom background color for positive values.protected boolean
m_UseBackgroundNegative
whether to use negative background.protected boolean
m_UseBackgroundPositive
whether to use positive background.-
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 AbstractColoredCellRenderingCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
backgroundNegativeTipText()
Returns the tip text for this property.String
backgroundPositiveTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.Color
getBackgroundNegative()
Returns the negative background color.Color
getBackgroundPositive()
Returns the positive background color.protected Color
getDefaultBackgroundNegative()
Returns the default negative background.protected Color
getDefaultBackgroundPositive()
Returns the default positive background.protected boolean
getDefaultUseBackgroundNegative()
Returns the default for using the negative background.protected boolean
getDefaultUseBackgroundPositive()
Returns the default for using the positive background.boolean
getUseBackgroundNegative()
Returns whether to use the negative background color.boolean
getUseBackgroundPositive()
Returns whether to use the positive background color.void
setBackgroundNegative(Color value)
Sets the negative background color.void
setBackgroundPositive(Color value)
Sets the positive background color.void
setUseBackgroundNegative(boolean value)
Sets whether to use the negative background color.void
setUseBackgroundPositive(boolean value)
Sets whether to use the positive background color.String
useBackgroundNegativeTipText()
Returns the tip text for this property.String
useBackgroundPositiveTipText()
Returns the tip text for this property.-
Methods inherited from class adams.gui.core.spreadsheettable.AbstractCellRenderingCustomizer
getBackgroundColor, getFont, getForegroundColor, getHorizontalAlignment, getToolTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, 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
-
-
-
-
Field Detail
-
m_UseBackgroundNegative
protected boolean m_UseBackgroundNegative
whether to use negative background.
-
m_BackgroundNegative
protected Color m_BackgroundNegative
the custom background color for negative values.
-
m_UseBackgroundPositive
protected boolean m_UseBackgroundPositive
whether to use positive background.
-
m_BackgroundPositive
protected Color m_BackgroundPositive
the custom background color for positive values.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
getDefaultUseBackgroundNegative
protected boolean getDefaultUseBackgroundNegative()
Returns the default for using the negative background.- Returns:
- the default
-
setUseBackgroundNegative
public void setUseBackgroundNegative(boolean value)
Sets whether to use the negative background color.- Parameters:
value
- true if to use
-
getUseBackgroundNegative
public boolean getUseBackgroundNegative()
Returns whether to use the negative background color.- Returns:
- true if to use
-
useBackgroundNegativeTipText
public String useBackgroundNegativeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultBackgroundNegative
protected Color getDefaultBackgroundNegative()
Returns the default negative background.- Returns:
- the default
-
setBackgroundNegative
public void setBackgroundNegative(Color value)
Sets the negative background color.- Parameters:
value
- the color
-
getBackgroundNegative
public Color getBackgroundNegative()
Returns the negative background color.- Returns:
- the color
-
backgroundNegativeTipText
public String backgroundNegativeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultUseBackgroundPositive
protected boolean getDefaultUseBackgroundPositive()
Returns the default for using the positive background.- Returns:
- the default
-
setUseBackgroundPositive
public void setUseBackgroundPositive(boolean value)
Sets whether to use the positive background color.- Parameters:
value
- true if to use
-
getUseBackgroundPositive
public boolean getUseBackgroundPositive()
Returns whether to use the positive background color.- Returns:
- true if to use
-
useBackgroundPositiveTipText
public String useBackgroundPositiveTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultBackgroundPositive
protected Color getDefaultBackgroundPositive()
Returns the default positive background.- Returns:
- the default
-
setBackgroundPositive
public void setBackgroundPositive(Color value)
Sets the positive background color.- Parameters:
value
- the color
-
getBackgroundPositive
public Color getBackgroundPositive()
Returns the positive background color.- Returns:
- the color
-
backgroundPositiveTipText
public String backgroundPositiveTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-