org.eclipse.birt.chart.model.attribute
Interface ColorDefinition

All Superinterfaces:
org.eclipse.emf.ecore.EObject, Fill, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
ColorDefinitionImpl

public interface ColorDefinition
extends Fill

A representation of the model object 'Color Definition'. This type represents a color.

The following features are supported:

See Also:
AttributePackage.getColorDefinition()

Method Summary
 ColorDefinition brighter()
          NOTE: Manually written
 ColorDefinition darker()
          NOTE: Manually written
 int getBlue()
          Returns the value of the 'Blue' attribute.
 int getGreen()
          Returns the value of the 'Green' attribute.
 int getRed()
          Returns the value of the 'Red' attribute.
 int getTransparency()
          Returns the value of the 'Transparency' attribute.
 void invert()
          Inverts the existing color (XORed with 0xFF).
 boolean isSetBlue()
          Returns whether the value of the 'Blue' attribute is set.
 boolean isSetGreen()
          Returns whether the value of the 'Green' attribute is set.
 boolean isSetRed()
          Returns whether the value of the 'Red' attribute is set.
 boolean isSetTransparency()
          Returns whether the value of the 'Transparency' attribute is set.
 ColorDefinition opaque()
          NOTE: Manually written
 void set(int iRed, int iGreen, int iBlue)
          Convenience method to set all three components for the color.
 void set(int iRed, int iGreen, int iBlue, int iAlpha)
          Convenience method to set the three components as well as transparency for the color.
 void setBlue(int value)
          Sets the value of the 'Blue' attribute.
 void setGreen(int value)
          Sets the value of the 'Green' attribute.
 void setRed(int value)
          Sets the value of the 'Red' attribute.
 void setTransparency(int value)
          Sets the value of the 'Transparency' attribute.
 ColorDefinition translucent()
          NOTE: Manually written
 ColorDefinition transparent()
          NOTE: Manually written
 void unsetBlue()
          Unsets the value of the 'Blue' attribute.
 void unsetGreen()
          Unsets the value of the 'Green' attribute.
 void unsetRed()
          Unsets the value of the 'Red' attribute.
 void unsetTransparency()
          Unsets the value of the 'Transparency' attribute.
 
Methods inherited from interface org.eclipse.birt.chart.model.attribute.Fill
getType, isSetType, setType, unsetType
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getTransparency

public int getTransparency()
Returns the value of the 'Transparency' attribute. Gets the transparency for the color Specifies the transparency for the color.

Returns:
the value of the 'Transparency' attribute.
See Also:
isSetTransparency(), unsetTransparency(), setTransparency(int), AttributePackage.getColorDefinition_Transparency()

setTransparency

public void setTransparency(int value)
Sets the value of the 'Transparency' attribute. Sets the transparency for the color.

Parameters:
value - the new value of the 'Transparency' attribute.
See Also:
isSetTransparency(), unsetTransparency(), getTransparency()

unsetTransparency

public void unsetTransparency()
Unsets the value of the 'Transparency' attribute.

See Also:
isSetTransparency(), getTransparency(), setTransparency(int)

isSetTransparency

public boolean isSetTransparency()
Returns whether the value of the 'Transparency' attribute is set.

Returns:
whether the value of the 'Transparency' attribute is set.
See Also:
unsetTransparency(), getTransparency(), setTransparency(int)

getRed

public int getRed()
Returns the value of the 'Red' attribute. Specifies the 'Red' component for the color.

Returns:
the value of the 'Red' attribute.
See Also:
isSetRed(), unsetRed(), setRed(int), AttributePackage.getColorDefinition_Red()

setRed

public void setRed(int value)
Sets the value of the 'Red' attribute. Sets the 'Red' component for the color.

Parameters:
value - the new value of the 'Red' attribute.
See Also:
isSetRed(), unsetRed(), getRed()

unsetRed

public void unsetRed()
Unsets the value of the 'Red' attribute.

See Also:
isSetRed(), getRed(), setRed(int)

isSetRed

public boolean isSetRed()
Returns whether the value of the 'Red' attribute is set.

Returns:
whether the value of the 'Red' attribute is set.
See Also:
unsetRed(), getRed(), setRed(int)

getBlue

public int getBlue()
Returns the value of the 'Blue' attribute. Specifies the 'Blue' component for the color.

Returns:
the value of the 'Blue' attribute.
See Also:
isSetBlue(), unsetBlue(), setBlue(int), AttributePackage.getColorDefinition_Blue()

setBlue

public void setBlue(int value)
Sets the value of the 'Blue' attribute. Sets the 'Blue' component for the color.

Parameters:
value - the new value of the 'Blue' attribute.
See Also:
isSetBlue(), unsetBlue(), getBlue()

unsetBlue

public void unsetBlue()
Unsets the value of the 'Blue' attribute.

See Also:
isSetBlue(), getBlue(), setBlue(int)

isSetBlue

public boolean isSetBlue()
Returns whether the value of the 'Blue' attribute is set.

Returns:
whether the value of the 'Blue' attribute is set.
See Also:
unsetBlue(), getBlue(), setBlue(int)

getGreen

public int getGreen()
Returns the value of the 'Green' attribute. Specifies the 'Green' component for the color.

Returns:
the value of the 'Green' attribute.
See Also:
isSetGreen(), unsetGreen(), setGreen(int), AttributePackage.getColorDefinition_Green()

setGreen

public void setGreen(int value)
Sets the value of the 'Green' attribute. Sets the 'Green' component for the color.

Parameters:
value - the new value of the 'Green' attribute.
See Also:
isSetGreen(), unsetGreen(), getGreen()

unsetGreen

public void unsetGreen()
Unsets the value of the 'Green' attribute.

See Also:
isSetGreen(), getGreen(), setGreen(int)

isSetGreen

public boolean isSetGreen()
Returns whether the value of the 'Green' attribute is set.

Returns:
whether the value of the 'Green' attribute is set.
See Also:
unsetGreen(), getGreen(), setGreen(int)

set

public void set(int iRed,
                int iGreen,
                int iBlue)
Convenience method to set all three components for the color. NOTE: Manually written

Parameters:
iRed -
iGreen -
iBlue -

set

public void set(int iRed,
                int iGreen,
                int iBlue,
                int iAlpha)
Convenience method to set the three components as well as transparency for the color. NOTE: Manually written

Parameters:
iRed -
iGreen -
iBlue -
iAlpha -

brighter

public ColorDefinition brighter()
NOTE: Manually written

Returns:
An instance of a brighter color relative to this color

darker

public ColorDefinition darker()
NOTE: Manually written

Returns:
An instance of a darker color relative to this color

translucent

public ColorDefinition translucent()
NOTE: Manually written

Returns:
A copy of the existing color but with alpha=127

opaque

public ColorDefinition opaque()
NOTE: Manually written

Returns:
A copy of the existing color but with alpha=255

invert

public void invert()
Inverts the existing color (XORed with 0xFF).

Returns:

transparent

public ColorDefinition transparent()
NOTE: Manually written

Returns:
A copy of the existing color but with alpha=0


Copyright © 2005-2007 Actuate Corp. All rights reserved.