com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ColorOperation

  • java.lang.Object
    • com.aspose.slides.ColorOperation
  • All Implemented Interfaces:
    IColorOperation


    public class ColorOperation
    extends java.lang.Object
    implements IColorOperation

    Represents different color operations used for color transformations. Immutable object.

    • Constructor Summary

      Constructors 
      Constructor and Description
      ColorOperation(int op)
      Creates new color transform operation.
      ColorOperation(int op, float parameter)
      Creates new color transform operation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Determines whether the two ColorOperation instances are equal.
      int getOperationType()
      Returns or sets the type of an operation.
      float getParameter()
      Returns a parameter of an operation.
      int hashCode()
      Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorOperation

        public ColorOperation(int op)

        Creates new color transform operation.

        Parameters:
        op - Operation type.
      • ColorOperation

        public ColorOperation(int op,
                              float parameter)

        Creates new color transform operation.

        Parameters:
        op - Operation type.
        parameter - Operation parameter.
    • Method Detail

      • getParameter

        public final float getParameter()

        Returns a parameter of an operation. Read-only float.

        Specified by:
        getParameter in interface IColorOperation
      • equals

        public boolean equals(java.lang.Object obj)

        Determines whether the two ColorOperation instances are equal.

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