com.aspose.slides
Class ColorFormatEx

java.lang.Object
  extended by com.aspose.slides.ColorFormatEx

public class ColorFormatEx
extends java.lang.Object

Represents a color used in a pptx presentation.


Method Summary
 boolean equals(java.lang.Object obj)
           Determines whether the two ColorFormatEx instances are equal.
 byte getB()
           Returns or sets the blue component of a color.
 java.awt.Color getColor()
           
 ColorOperationExCollection getColorTransform()
           Returns the collection of color transformations applied to a color.
 int getColorType()
           Returns or sets the color definition method.
 float getFloatB()
           Returns or sets the blue component of a color.
 float getFloatG()
           Returns or sets the green component of a color.
 float getFloatR()
           Returns or sets the red component of a color.
 byte getG()
           Returns or sets the green component of a color.
 float getHue()
           Returns or sets the hue component of a color in HSL representation.
 float getLuminance()
           Returns or sets the luminance component of a color in HSL representation.
 int getPresetColor()
           Returns or sets the color preset.
 byte getR()
           Returns or sets the red component of a color.
 float getSaturation()
           Returns or sets the saturation component of a color in HSL representation.
 int getSchemeColor()
           Returns or sets the color identified by a color scheme.
 int getSystemColor()
           Returns or sets the color identified by the system color table.
 int hashCode()
           Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 void setB(byte value)
           
 void setColor(java.awt.Color value)
           
 void setColorType(int value)
           
 void setFloatB(float value)
           
 void setFloatG(float value)
           
 void setFloatR(float value)
           
 void setG(byte value)
           
 void setHue(float value)
           
 void setLuminance(float value)
           
 void setPresetColor(int value)
           
 void setR(byte value)
           
 void setSaturation(float value)
           
 void setSchemeColor(int value)
           
 void setSystemColor(int value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color value)

getColorType

public int getColorType()

Returns or sets the color definition method. Read/write ColorType.


setColorType

public void setColorType(int value)

getPresetColor

public int getPresetColor()

Returns or sets the color preset. Read/write PresetColor.


setPresetColor

public void setPresetColor(int value)

getSystemColor

public int getSystemColor()

Returns or sets the color identified by the system color table. Read/write SystemColor.


setSystemColor

public void setSystemColor(int value)

getSchemeColor

public int getSchemeColor()

Returns or sets the color identified by a color scheme. Read/write SchemeColor.


setSchemeColor

public void setSchemeColor(int value)

getR

public byte getR()

Returns or sets the red component of a color. All color transformations are ignored. Read/write byte.


setR

public void setR(byte value)

getG

public byte getG()

Returns or sets the green component of a color. All color transformations are ignored. Read/write byte.


setG

public void setG(byte value)

getB

public byte getB()

Returns or sets the blue component of a color. All color transformations are ignored. Read/write byte.


setB

public void setB(byte value)

getFloatR

public float getFloatR()

Returns or sets the red component of a color. All color transformations are ignored. Read/write float.


setFloatR

public void setFloatR(float value)

getFloatG

public float getFloatG()

Returns or sets the green component of a color. All color transformations are ignored. Read/write float.


setFloatG

public void setFloatG(float value)

getFloatB

public float getFloatB()

Returns or sets the blue component of a color. All color transformations are ignored. Read/write float.


setFloatB

public void setFloatB(float value)

getHue

public float getHue()

Returns or sets the hue component of a color in HSL representation. All color transformations are ignored. Read/write float.


setHue

public void setHue(float value)

getSaturation

public float getSaturation()

Returns or sets the saturation component of a color in HSL representation. All color transformations are ignored. Read/write float.


setSaturation

public void setSaturation(float value)

getLuminance

public float getLuminance()

Returns or sets the luminance component of a color in HSL representation. All color transformations are ignored. Read/write float.


setLuminance

public void setLuminance(float value)

getColorTransform

public ColorOperationExCollection getColorTransform()

Returns the collection of color transformations applied to a color. Read-only ColorOperationExCollection.


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:
<b>true</b> if the specified ColorFormatEx is equal to the current ColorFormatEx; otherwise, <b>false</b>.

hashCode

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:
23455


Overriden to make compiler happy. Always returns constant because object is mutable.