Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Class RGBBlendColorFactory

  extended by 
All Implemented Interfaces:
IExecutableExtension, IColorFactory

public class RGBBlendColorFactory
extends Object
implements IColorFactory, IExecutableExtension

A resuable IColorFactory that may be used to blend two colors. The colors to blend are specified as per method number two in IExecutableExtension.

Example usage:
<colorDefinition label="Red/Blue Blend" id="example.redblueblend"> <colorFactory plugin="org.eclipse.ui" class="org.eclipse.ui.themes.RGBBlendColorFactory"> <parameter name="color1" value="255,0,0" /> <parameter name="color2" value="COLOR_BLUE" /> </colorFactory> </colorDefinition>

The color values may be specified as RGB triples or as SWT constants.

See Also:

Constructor Summary
RGBBlendColorFactory ()
Method Summary
  RGB createColor ()
          Create a new color.
 void setInitializationData ( IConfigurationElement config, String propertyName, Object data)
          This executable extension requires parameters to be explicitly declared via the second method described in the IExecutableExtension documentation.
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public RGBBlendColorFactory()
Method Detail


RGB createColor()
Description copied from interface: IColorFactory
Create a new color.

Specified by:
createColor in interface IColorFactory
a new color. This must never be null.


public void setInitializationData(
IConfigurationElement config,
String propertyName,
Object data)
This executable extension requires parameters to be explicitly declared via the second method described in the IExecutableExtension documentation. This class expects that there will be two parameters, color1 and color2, that describe the two colors to be blended. These values may either be RGB triples or SWT constants.

Specified by:
setInitializationData in interface IExecutableExtension
config - the configuration element used to trigger this execution. It can be queried by the executable extension for specific configuration properties
propertyName - the name of an attribute of the configuration element used on the createExecutableExtension(String) call. This argument can be used in the cases where a single configuration element is used to define multiple executable extensions.
data - adapter data in the form of a String, a Hashtable, or null.
CoreException - if error(s) detected during initialization processing
See Also:
IExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire