com.aspose.slides
Class ColorFormat

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

public class ColorFormat
extends PVIObject
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)
           
 byte getB()
           Returns or sets the blue component of a color.
 java.awt.Color getColor()
           Returns resulting color (with all color transformations applied).
 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.
 IPresentationComponent getParent_IPresentationComponent()
           
 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.
 BaseSlide getSlide()
           
 int getSystemColor()
           Returns or sets the color identified by the system color table.
 int hashCode()
           
 void setB(byte value)
           Returns or sets the blue component of a color.
 void setColor(java.awt.Color value)
           Returns resulting color (with all color transformations applied).
 void setColorType(int value)
           Returns or sets the color definition method.
 void setFloatB(float value)
           Returns or sets the blue component of a color.
 void setFloatG(float value)
           Returns or sets the green component of a color.
 void setFloatR(float value)
           Returns or sets the red component of a color.
 void setG(byte value)
           Returns or sets the green component of a color.
 void setHue(float value)
           Returns or sets the hue component of a color in HSL representation.
 void setLuminance(float value)
           Returns or sets the luminance component of a color in HSL representation.
 void setPresetColor(int value)
           Returns or sets the color preset.
 void setR(byte value)
           Returns or sets the red component of a color.
 void setSaturation(float value)
           Returns or sets the saturation component of a color in HSL representation.
 void setSchemeColor(int value)
           Returns or sets the color identified by a color scheme.
 void setSystemColor(int value)
           Returns or sets the color identified by the system color table.
 java.lang.String toString(int format)
           Returns a string that represents the current color format.
 
Methods inherited from class com.aspose.slides.PVIObject
getParent_Immediate, getPresentation, getVersion
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColorType

public final int getColorType()

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

Specified by:
getColorType in interface IColorFormat

setColorType

public final void setColorType(int value)

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

Specified by:
setColorType in interface IColorFormat

getColor

public final java.awt.Color getColor()

Returns resulting color (with all color transformations applied). Sets RGB colors and clears all color transformations. Read/write Color.

Specified by:
getColor in interface IColorFormat

setColor

public final void setColor(java.awt.Color value)

Returns resulting color (with all color transformations applied). Sets RGB colors and clears all color transformations. Read/write Color.

Specified by:
setColor in interface IColorFormat

getPresetColor

public final int getPresetColor()

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

Specified by:
getPresetColor in interface IColorFormat

setPresetColor

public final void setPresetColor(int value)

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

Specified by:
setPresetColor in interface IColorFormat

getSystemColor

public final int getSystemColor()

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

Specified by:
getSystemColor in interface IColorFormat

setSystemColor

public final void setSystemColor(int value)

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

Specified by:
setSystemColor in interface IColorFormat

getSchemeColor

public final int getSchemeColor()

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

Specified by:
getSchemeColor in interface IColorFormat

setSchemeColor

public final void setSchemeColor(int value)

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

Specified by:
setSchemeColor in interface IColorFormat

getR

public final 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 final void setR(byte value)

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

Specified by:
setR in interface IColorFormat

getG

public final byte getG()
Description copied from interface: IColorFormat

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 final void setG(byte value)
Description copied from interface: IColorFormat

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

Specified by:
setG in interface IColorFormat

getB

public final 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 final void setB(byte value)

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

Specified by:
setB in interface IColorFormat

getFloatR

public final 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 final void setFloatR(float value)

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

Specified by:
setFloatR in interface IColorFormat

getFloatG

public final 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 final void setFloatG(float value)

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

Specified by:
setFloatG in interface IColorFormat

getFloatB

public final 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 final void setFloatB(float value)

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

Specified by:
setFloatB in interface IColorFormat

getHue

public final 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 final void setHue(float value)

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

Specified by:
setHue in interface IColorFormat

getSaturation

public final 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 final void setSaturation(float value)

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

Specified by:
setSaturation in interface IColorFormat

getLuminance

public final 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 final void setLuminance(float value)

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

Specified by:
setLuminance in interface IColorFormat

getColorTransform

public final IColorOperationCollection getColorTransform()

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

Specified by:
getColorTransform in interface IColorFormat

toString

public final java.lang.String toString(int format)

Returns a string that represents the current color format.

Specified by:
toString in interface IColorFormat
Parameters:
format - A type of color string format.
Returns:
A string that represents the current color format.

copyFrom

public final void copyFrom(IColorFormat color)

Copy color format from "color".

Specified by:
copyFrom in interface IColorFormat

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class PVIObject

hashCode

public int hashCode()
Overrides:
hashCode in class PVIObject

getParent_IPresentationComponent

public final IPresentationComponent getParent_IPresentationComponent()
Overrides:
getParent_IPresentationComponent in class PVIObject

getSlide

public final BaseSlide getSlide()
Overrides:
getSlide in class PVIObject


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.