com.aspose.slides
Class ColorFormat

java.lang.Object
  extended by com.aspose.slides.ColorFormat
All Implemented Interfaces:
IColorFormat, IFillParamSource

public class ColorFormat
extends java.lang.Object
implements IColorFormat

Represents a color used in a presentation.


Method Summary
 void copyFrom(IColorFormat color)
           Copy color format from "color".
 boolean equals(java.lang.Object obj)
           Determines whether the two ColorFormat instances are equal.
 byte getB()
           Returns or sets the blue component of a color.
 java.awt.Color getColor()
           
 IColorOperationCollection 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)
           
 java.lang.String toString()
           
 java.lang.String toString(int format)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

copyFrom

public void copyFrom(IColorFormat color)

Copy color format from "color".

Specified by:
copyFrom in interface IColorFormat

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface IColorFormat

setColor

public void setColor(java.awt.Color value)
Specified by:
setColor in interface IColorFormat

getColorType

public int getColorType()

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

Specified by:
getColorType in interface IColorFormat

setColorType

public void setColorType(int value)
Specified by:
setColorType in interface IColorFormat

getPresetColor

public int getPresetColor()

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

Specified by:
getPresetColor in interface IColorFormat

setPresetColor

public void setPresetColor(int value)
Specified by:
setPresetColor in interface IColorFormat

getSystemColor

public int getSystemColor()

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

Specified by:
getSystemColor in interface IColorFormat

setSystemColor

public void setSystemColor(int value)
Specified by:
setSystemColor in interface IColorFormat

getSchemeColor

public int getSchemeColor()

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

Specified by:
getSchemeColor in interface IColorFormat

setSchemeColor

public void setSchemeColor(int value)
Specified by:
setSchemeColor in interface IColorFormat

getR

public byte getR()

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

Specified by:
getR in interface IColorFormat

setR

public void setR(byte value)
Specified by:
setR in interface IColorFormat

getG

public byte getG()

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

Specified by:
getG in interface IColorFormat

setG

public void setG(byte value)
Specified by:
setG in interface IColorFormat

getB

public byte getB()

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

Specified by:
getB in interface IColorFormat

setB

public void setB(byte value)
Specified by:
setB in interface IColorFormat

getFloatR

public float getFloatR()

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

Specified by:
getFloatR in interface IColorFormat

setFloatR

public void setFloatR(float value)
Specified by:
setFloatR in interface IColorFormat

getFloatG

public float getFloatG()

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

Specified by:
getFloatG in interface IColorFormat

setFloatG

public void setFloatG(float value)
Specified by:
setFloatG in interface IColorFormat

getFloatB

public float getFloatB()

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

Specified by:
getFloatB in interface IColorFormat

setFloatB

public void setFloatB(float value)
Specified by:
setFloatB in interface IColorFormat

getHue

public float getHue()

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

Specified by:
getHue in interface IColorFormat

setHue

public void setHue(float value)
Specified by:
setHue in interface IColorFormat

getSaturation

public float getSaturation()

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

Specified by:
getSaturation in interface IColorFormat

setSaturation

public void setSaturation(float value)
Specified by:
setSaturation in interface IColorFormat

getLuminance

public float getLuminance()

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

Specified by:
getLuminance in interface IColorFormat

setLuminance

public void setLuminance(float value)
Specified by:
setLuminance in interface IColorFormat

getColorTransform

public IColorOperationCollection getColorTransform()

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

Specified by:
getColorTransform in interface IColorFormat

equals

public boolean equals(java.lang.Object obj)

Determines whether the two ColorFormat instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The ColorFormat to compare with the current ColorFormat.
Returns:
<b>true</b> if the specified ColorFormat is equal to the current ColorFormat; 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.


toString

public java.lang.String toString(int format)
Specified by:
toString in interface IColorFormat

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object