IColorFormat
All Implemented Interfaces: com.aspose.slides.IFillParamSource
public interface IColorFormat extends IFillParamSource
Represents a color used in a presentation.
Methods
Method | Description |
---|---|
getColorType() | Returns or sets the color definition method. |
setColorType(int value) | Returns or sets the color definition method. |
getColor() | Returns resulting color (with all color transformations applied). |
setColor(Color value) | Returns resulting color (with all color transformations applied). |
getPresetColor() | Returns or sets the color preset. |
setPresetColor(int value) | Returns or sets the color preset. |
getSystemColor() | Returns or sets the color identified by the system color table. |
setSystemColor(int value) | Returns or sets the color identified by the system color table. |
getSchemeColor() | Returns or sets the color identified by a color scheme. |
setSchemeColor(int value) | Returns or sets the color identified by a color scheme. |
getR() | Returns or sets the red component of a color. |
setR(byte value) | Returns or sets the red component of a color. |
getG() | Returns or sets the green component of a color. |
setG(byte value) | Returns or sets the green component of a color. |
getB() | Returns or sets the blue component of a color. |
setB(byte value) | Returns or sets the blue component of a color. |
getFloatR() | Returns or sets the red component of a color. |
setFloatR(float value) | Returns or sets the red component of a color. |
getFloatG() | Returns or sets the green component of a color. |
setFloatG(float value) | Returns or sets the green component of a color. |
getFloatB() | Returns or sets the blue component of a color. |
setFloatB(float value) | Returns or sets the blue component of a color. |
getHue() | Returns or sets the hue component of a color in HSL representation. |
setHue(float value) | Returns or sets the hue component of a color in HSL representation. |
getSaturation() | Returns or sets the saturation component of a color in HSL representation. |
setSaturation(float value) | Returns or sets the saturation component of a color in HSL representation. |
getLuminance() | Returns or sets the luminance component of a color in HSL representation. |
setLuminance(float value) | Returns or sets the luminance component of a color in HSL representation. |
getColorTransform() | Returns the collection of color transformations applied to a color. |
toString(int format) | Returns a String that represents the current color format. |
copyFrom(IColorFormat color) | Copy color format from “color”. |
getColorType()
public abstract int getColorType()
Returns or sets the color definition method. Read/write ColorType.
Returns: int
setColorType(int value)
public abstract void setColorType(int value)
Returns or sets the color definition method. Read/write ColorType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getColor()
public abstract Color getColor()
Returns resulting color (with all color transformations applied). Sets RGB colors and clears all color transformations. Read/write java.awt.Color.
Returns: java.awt.Color
setColor(Color value)
public abstract void setColor(Color value)
Returns resulting color (with all color transformations applied). Sets RGB colors and clears all color transformations. Read/write java.awt.Color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color |
getPresetColor()
public abstract int getPresetColor()
Returns or sets the color preset. Read/write PresetColor.
Returns: int
setPresetColor(int value)
public abstract void setPresetColor(int value)
Returns or sets the color preset. Read/write PresetColor.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getSystemColor()
public abstract int getSystemColor()
Returns or sets the color identified by the system color table. Read/write SystemColor.
Returns: int
setSystemColor(int value)
public abstract void setSystemColor(int value)
Returns or sets the color identified by the system color table. Read/write SystemColor.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getSchemeColor()
public abstract int getSchemeColor()
Returns or sets the color identified by a color scheme. Read/write SchemeColor.
Returns: int
setSchemeColor(int value)
public abstract void setSchemeColor(int value)
Returns or sets the color identified by a color scheme. Read/write SchemeColor.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getR()
public abstract byte getR()
Returns or sets the red component of a color. All color transformations are ignored. Read/write byte.
Returns: byte
setR(byte value)
public abstract void setR(byte value)
Returns or sets the red component of a color. All color transformations are ignored. Read/write byte.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getG()
public abstract byte getG()
Returns or sets the green component of a color. All color transformations are ignored. Read/write byte.
Returns: byte
setG(byte value)
public abstract void setG(byte value)
Returns or sets the green component of a color. All color transformations are ignored. Read/write byte.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getB()
public abstract byte getB()
Returns or sets the blue component of a color. All color transformations are ignored. Read/write byte.
Returns: byte
setB(byte value)
public abstract void setB(byte value)
Returns or sets the blue component of a color. All color transformations are ignored. Read/write byte.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getFloatR()
public abstract float getFloatR()
Returns or sets the red component of a color. All color transformations are ignored. Read/write float.
Returns: float
setFloatR(float value)
public abstract void setFloatR(float value)
Returns or sets the red component of a color. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getFloatG()
public abstract float getFloatG()
Returns or sets the green component of a color. All color transformations are ignored. Read/write float.
Returns: float
setFloatG(float value)
public abstract void setFloatG(float value)
Returns or sets the green component of a color. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getFloatB()
public abstract float getFloatB()
Returns or sets the blue component of a color. All color transformations are ignored. Read/write float.
Returns: float
setFloatB(float value)
public abstract void setFloatB(float value)
Returns or sets the blue component of a color. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getHue()
public abstract float getHue()
Returns or sets the hue component of a color in HSL representation. All color transformations are ignored. Read/write float.
Returns: float
setHue(float value)
public abstract void setHue(float value)
Returns or sets the hue component of a color in HSL representation. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getSaturation()
public abstract float getSaturation()
Returns or sets the saturation component of a color in HSL representation. All color transformations are ignored. Read/write float.
Returns: float
setSaturation(float value)
public abstract void setSaturation(float value)
Returns or sets the saturation component of a color in HSL representation. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getLuminance()
public abstract float getLuminance()
Returns or sets the luminance component of a color in HSL representation. All color transformations are ignored. Read/write float.
Returns: float
setLuminance(float value)
public abstract void setLuminance(float value)
Returns or sets the luminance component of a color in HSL representation. All color transformations are ignored. Read/write float.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
getColorTransform()
public abstract IColorOperationCollection getColorTransform()
Returns the collection of color transformations applied to a color. Read-only IColorOperationCollection.
Returns: IColorOperationCollection
toString(int format)
public abstract String toString(int format)
Returns a String that represents the current color format.
Parameters:
Parameter | Type | Description |
---|---|---|
format | int | A type of color string format. |
Returns: java.lang.String - A string that represents the current color format.
copyFrom(IColorFormat color)
public abstract void copyFrom(IColorFormat color)
Copy color format from “color”.
Parameters:
Parameter | Type | Description |
---|---|---|
color | IColorFormat | Color IColorFormat |