org.gudy.azureus2.pluginsimpl.local.ui.config
Class ColorParameterImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
      extended by org.gudy.azureus2.pluginsimpl.local.ui.config.ColorParameterImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter, ColorParameter, EnablerParameter, Parameter

public class ColorParameterImpl
extends ParameterImpl
implements ColorParameter

Author:
Allan Crooks

Field Summary
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
config
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
 
Constructor Summary
ColorParameterImpl(PluginConfigImpl config, String key, String label, int _r, int _g, int _b)
           
 
Method Summary
 int getBlueValue()
           
 int getGreenValue()
           
 int getRedValue()
           
 boolean isOverridden()
           
 void reloadParamDataFromConfig(boolean override)
           
 void resetToDefault()
           
 void setRGBValue(int r, int g, int b)
           
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.local.ui.config.ParameterImpl
addConfigParameterListener, addDisabledOnSelection, addEnabledOnSelection, addImplListener, addListener, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isVisible, parameterChanged, removeConfigParameterListener, removeImplListener, removeListener, setEnabled, setGenerateIntermediateEvents, setGroup, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.config.Parameter
addListener, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isVisible, removeListener, setEnabled, setGenerateIntermediateEvents, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
 
Methods inherited from interface org.gudy.azureus2.plugins.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
 

Constructor Detail

ColorParameterImpl

public ColorParameterImpl(PluginConfigImpl config,
                          String key,
                          String label,
                          int _r,
                          int _g,
                          int _b)
Method Detail

getRedValue

public int getRedValue()
Specified by:
getRedValue in interface ColorParameter

getGreenValue

public int getGreenValue()
Specified by:
getGreenValue in interface ColorParameter

getBlueValue

public int getBlueValue()
Specified by:
getBlueValue in interface ColorParameter

reloadParamDataFromConfig

public void reloadParamDataFromConfig(boolean override)

setRGBValue

public void setRGBValue(int r,
                        int g,
                        int b)
Specified by:
setRGBValue in interface ColorParameter

resetToDefault

public void resetToDefault()

isOverridden

public boolean isOverridden()