com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ColorFormat

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void copyFrom(IColorFormat color)
      Copy color format from "color".
      boolean equals(java.lang.Object obj)
      Checks for equality with specified object.
      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.
      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()
      Returns hash code.
      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 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
      • 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()

        Returns or sets the green component of a color. All color transformations are ignored.

        Specified by:
        getG in interface IColorFormat
      • setG

        public final void setG(byte value)

        Returns or sets the green component of a color. All color transformations are ignored.

        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
      • 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.
      • equals

        public boolean equals(java.lang.Object obj)

        Checks for equality with specified object.

        Overrides:
        equals in class PVIObject
        Parameters:
        obj - Object.
        Returns:
        True if objects are equal, otherwise false.
      • hashCode

        public int hashCode()

        Returns hash code.

        Overrides:
        hashCode in class PVIObject
        Returns:
        Hash code.