com.aspose.slides.pptx
Class ColorFormatEx

java.lang.Object
  extended by com.aspose.slides.pptx.ColorFormatEx
All Implemented Interfaces:
IFillParamSource

public class ColorFormatEx
extends java.lang.Object
implements IFillParamSource

Represents a color used in a pptx presentation.


Nested Class Summary
static class ColorFormatEx.FloatColor
           
 
Constructor Summary
ColorFormatEx(com.aspose.slides.pptx.ISlideComponent parent)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Determines whether the two ColorFormatEx instances are equal.
 byte getB()
          Returns the blue component of a color.
 java.awt.Color getColor()
          Returns resulting color (with all color transformations applied)
 ColorTransformEx getColorTransform()
          Returns the collection of color transformations applied to a color.
 ColorTypeEx getColorType()
          Returns the color definition method.
 float getFloatB()
          Returns the blue component of a color.
 ColorFormatEx.FloatColor getFloatColor(BaseSlideEx slide, ColorFormatEx.FloatColor styleColor)
           
 float getFloatG()
          Returns the green component of a color.
 float getFloatR()
          Returns the red component of a color.
 byte getG()
          Returns the green component of a color.
 float getHue()
          Returns the Hue component of a color in HSL representation.
 float getLuminance()
          Returns the Luminance component of a color in HSL representation.
 PresetColorEx getPresetColor()
          Returns the color preset.
 byte getR()
          Returns the red component of a color.
 float getSaturation()
          Returns the Saturation component of a color in HSL representation.
 SchemeColorEx getSchemeColor()
          Returns the color identified by a color scheme.
 SystemColorEx getSystemColor()
          Returns the color identified by the system color table.
 void loadColor(PptxBaseXmlElement source, boolean removeElement)
           
 void loadColor(PptxBaseXmlElement sourceContainer, java.lang.String localName, java.lang.String namespaceUri)
           
 void setB(byte value)
          Sets the blue component of a color.
 void setColor(java.awt.Color value)
          Sets RGB colors and clears all color transformations.
 void setColorType(ColorTypeEx value)
          Sets the color definition method.
 void setFloatB(float value)
          Sets the blue component of a color.
 void setFloatG(float value)
          Sets the green component of a color.
 void setFloatR(float value)
          Sets the red component of a color.
 void setG(byte value)
          Sets the green component of a color.
 void setHue(float value)
          Sets the Hue component of a color in HSL representation.
 void setLuminance(float value)
          Sets the Luminance component of a color in HSL representation.
 void setPresetColor(PresetColorEx value)
          Sets the color preset.
 void setR(byte value)
          Sets the red component of a color.
 void setSaturation(float value)
          Sets the Saturation component of a color in HSL representation.
 void setSchemeColor(SchemeColorEx value)
          Sets the color identified by a color scheme.
 void setSystemColor(SystemColorEx value)
          Sets the color identified by the system color table.
 PptxBaseXmlElement writeColor(PptxBaseXmlElement target, java.lang.String localName, boolean forceSaving)
           
 PptxBaseXmlElement writeColor(PptxBaseXmlElement target, java.lang.String localName, java.lang.String namespaceURI, boolean forceSaving)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorFormatEx

public ColorFormatEx(com.aspose.slides.pptx.ISlideComponent parent)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

loadColor

public void loadColor(PptxBaseXmlElement sourceContainer,
                      java.lang.String localName,
                      java.lang.String namespaceUri)

loadColor

public void loadColor(PptxBaseXmlElement source,
                      boolean removeElement)

writeColor

public PptxBaseXmlElement writeColor(PptxBaseXmlElement target,
                                     java.lang.String localName,
                                     boolean forceSaving)

writeColor

public PptxBaseXmlElement writeColor(PptxBaseXmlElement target,
                                     java.lang.String localName,
                                     java.lang.String namespaceURI,
                                     boolean forceSaving)

getFloatColor

public ColorFormatEx.FloatColor getFloatColor(BaseSlideEx slide,
                                              ColorFormatEx.FloatColor styleColor)

getColor

public java.awt.Color getColor()
Returns resulting color (with all color transformations applied). *


setColor

public void setColor(java.awt.Color value)
Sets RGB colors and clears all color transformations.

Parameters:
value - new color value.

getColorType

public ColorTypeEx getColorType()
Returns the color definition method.

Returns:
See ColorTypeEx.

setColorType

public void setColorType(ColorTypeEx value)
Sets the color definition method.

Parameters:
value - new color definition method. See ColorTypeEx.

getPresetColor

public PresetColorEx getPresetColor()
Returns the color preset.

Returns:
See PresetColorEx.

setPresetColor

public void setPresetColor(PresetColorEx value)
Sets the color preset.

Parameters:
value - new color preset. See PresetColorEx.

getSystemColor

public SystemColorEx getSystemColor()
Returns the color identified by the system color table.

Returns:
See SystemColorEx.

setSystemColor

public void setSystemColor(SystemColorEx value)
Sets the color identified by the system color table.

Parameters:
value - new system color. See SystemColorEx.

getSchemeColor

public SchemeColorEx getSchemeColor()
Returns the color identified by a color scheme.

Returns:
See SchemeColorEx.

setSchemeColor

public void setSchemeColor(SchemeColorEx value)
Sets the color identified by a color scheme.

Parameters:
value - new scheme color. See SchemeColorEx.

getR

public byte getR()
Returns the red component of a color. All color transformations are ignored.


setR

public void setR(byte value)
Sets the red component of a color. All color transformations are ignored.

Parameters:
value - new red value.

getG

public byte getG()
Returns the green component of a color. All color transformations are ignored.


setG

public void setG(byte value)
Sets the green component of a color. All color transformations are ignored.

Parameters:
value - new green value.

getB

public byte getB()
Returns the blue component of a color. All color transformations are ignored.


setB

public void setB(byte value)
Sets the blue component of a color. All color transformations are ignored.

Parameters:
value - new blue value.

getFloatR

public float getFloatR()
Returns the red component of a color. All color transformations are ignored.


setFloatR

public void setFloatR(float value)
Sets the red component of a color. All color transformations are ignored.

Parameters:
value - new red value.

getFloatG

public float getFloatG()
Returns the green component of a color. All color transformations are ignored.


setFloatG

public void setFloatG(float value)
Sets the green component of a color. All color transformations are ignored.

Parameters:
value - new green value.

getFloatB

public float getFloatB()
Returns the blue component of a color. All color transformations are ignored.


setFloatB

public void setFloatB(float value)
Sets the blue component of a color. All color transformations are ignored.

Parameters:
value - new blue value.

getHue

public float getHue()
Returns the Hue component of a color in HSL representation. All color transformations are ignored.


setHue

public void setHue(float value)
Sets the Hue component of a color in HSL representation. All color transformations are ignored.

Parameters:
value - new Hue value.

getSaturation

public float getSaturation()
Returns the Saturation component of a color in HSL representation. All color transformations are ignored.


setSaturation

public void setSaturation(float value)
Sets the Saturation component of a color in HSL representation. All color transformations are ignored.

Parameters:
value - new Saturation value.

getLuminance

public float getLuminance()
Returns the Luminance component of a color in HSL representation. All color transformations are ignored.


setLuminance

public void setLuminance(float value)
Sets the Luminance component of a color in HSL representation. All color transformations are ignored.

Parameters:
value - new Luminance value.

getColorTransform

public ColorTransformEx getColorTransform()
Returns the collection of color transformations applied to a color.

Returns:
See ColorTransformEx.

equals

public boolean equals(java.lang.Object obj)
Determines whether the two ColorFormatEx instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The ColorFormatEx to compare with the current ColorFormatEx.
Returns:
true if the specified ColorFormatEx is equal to the current ColorFormatEx; otherwise, false.