|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.ColorFormat
public class ColorFormat
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 |
---|
public void copyFrom(IColorFormat color)
Copy color format from "color".
copyFrom
in interface IColorFormat
public java.awt.Color getColor()
getColor
in interface IColorFormat
public void setColor(java.awt.Color value)
setColor
in interface IColorFormat
public int getColorType()
Returns or sets the color definition method.
Read/write ColorType
.
getColorType
in interface IColorFormat
public void setColorType(int value)
setColorType
in interface IColorFormat
public int getPresetColor()
Returns or sets the color preset.
Read/write PresetColor
.
getPresetColor
in interface IColorFormat
public void setPresetColor(int value)
setPresetColor
in interface IColorFormat
public int getSystemColor()
Returns or sets the color identified by the system color table.
Read/write SystemColor
.
getSystemColor
in interface IColorFormat
public void setSystemColor(int value)
setSystemColor
in interface IColorFormat
public int getSchemeColor()
Returns or sets the color identified by a color scheme.
Read/write SchemeColor
.
getSchemeColor
in interface IColorFormat
public void setSchemeColor(int value)
setSchemeColor
in interface IColorFormat
public byte getR()
Returns or sets the red component of a color. All color transformations are ignored.
Read/write byte
.
getR
in interface IColorFormat
public void setR(byte value)
setR
in interface IColorFormat
public byte getG()
Returns or sets the green component of a color. All color transformations are ignored.
Read/write byte
.
getG
in interface IColorFormat
public void setG(byte value)
setG
in interface IColorFormat
public byte getB()
Returns or sets the blue component of a color. All color transformations are ignored.
Read/write byte
.
getB
in interface IColorFormat
public void setB(byte value)
setB
in interface IColorFormat
public float getFloatR()
Returns or sets the red component of a color. All color transformations are ignored.
Read/write float
.
getFloatR
in interface IColorFormat
public void setFloatR(float value)
setFloatR
in interface IColorFormat
public float getFloatG()
Returns or sets the green component of a color. All color transformations are ignored.
Read/write float
.
getFloatG
in interface IColorFormat
public void setFloatG(float value)
setFloatG
in interface IColorFormat
public float getFloatB()
Returns or sets the blue component of a color. All color transformations are ignored.
Read/write float
.
getFloatB
in interface IColorFormat
public void setFloatB(float value)
setFloatB
in interface IColorFormat
public float getHue()
Returns or sets the hue component of a color in HSL representation.
All color transformations are ignored.
Read/write float
.
getHue
in interface IColorFormat
public void setHue(float value)
setHue
in interface IColorFormat
public float getSaturation()
Returns or sets the saturation component of a color in HSL representation.
All color transformations are ignored.
Read/write float
.
getSaturation
in interface IColorFormat
public void setSaturation(float value)
setSaturation
in interface IColorFormat
public float getLuminance()
Returns or sets the luminance component of a color in HSL representation.
All color transformations are ignored.
Read/write float
.
getLuminance
in interface IColorFormat
public void setLuminance(float value)
setLuminance
in interface IColorFormat
public IColorOperationCollection getColorTransform()
Returns the collection of color transformations applied to a color.
Read-only ColorOperationCollection
.
getColorTransform
in interface IColorFormat
public boolean equals(java.lang.Object obj)
Determines whether the two ColorFormat instances are equal.
equals
in class java.lang.Object
obj
- The ColorFormat to compare with the current ColorFormat.
<b>true</b>
if the specified ColorFormat is equal to the current ColorFormat;
otherwise, <b>false</b>
.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.
hashCode
in class java.lang.Object
public java.lang.String toString(int format)
toString
in interface IColorFormat
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |