com.aspose.slides
Class ColorOperation

java.lang.Object
  extended by 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
ColorOperation(int op)
           Creates new color transform operation.
ColorOperation(int op, float parameter)
           Creates new color transform operation.
 
Method Summary
 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

getOperationType

public final int getOperationType()

Returns or sets the type of an operation. Read-only ColorTransformOperation.

Specified by:
getOperationType in interface IColorOperation

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


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