org.gudy.azureus2.ui.swt.config
Class ColorParameter
java.lang.Object
org.gudy.azureus2.ui.swt.config.Parameter
org.gudy.azureus2.ui.swt.config.ColorParameter
- All Implemented Interfaces:
- ParameterListener, IParameter
public class ColorParameter
- extends Parameter
- implements ParameterListener
- Author:
- Olivier
Field Summary |
protected java.lang.String |
sParamName
|
Constructor Summary |
ColorParameter(org.eclipse.swt.widgets.Composite composite,
java.lang.String name,
int _r,
int _g,
int _b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sParamName
protected java.lang.String sParamName
ColorParameter
public ColorParameter(org.eclipse.swt.widgets.Composite composite,
java.lang.String name,
int _r,
int _g,
int _b)
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControl
in interface IParameter
setLayoutData
public void setLayoutData(java.lang.Object layoutData)
- Specified by:
setLayoutData
in interface IParameter
parameterChanged
public void parameterChanged(java.lang.String parameterName)
- Description copied from interface:
ParameterListener
- Called, when a parameter has changed.
The listener could only react if the parameter name is relevant.
Or the listener can just read all parameters again.
- Specified by:
parameterChanged
in interface ParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
newColorChosen
public void newColorChosen(org.eclipse.swt.graphics.RGB newColor)
newColorSet
public void newColorSet(org.eclipse.swt.graphics.RGB newColor)
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in class Parameter
setColor
public void setColor(int _r,
int _g,
int _b)