com.aspose.slides
Class GradientFormat

java.lang.Object
  extended by com.aspose.slides.GradientFormat
All Implemented Interfaces:
IFillParamSource, IGradientFormat, IPresentationComponent, ISlideComponent

public final class GradientFormat
extends java.lang.Object
implements IGradientFormat

Represent a gradient format.


Method Summary
 boolean equals(java.lang.Object obj)
           Determines whether the two GradientFormat instances are equal.
 int getGradientDirection()
           Returns or sets the style of a gradient.
 byte getGradientShape()
           Returns or sets the shape of a gradient.
 IGradientStopCollection getGradientStops()
           Returns the collection of gradient stops.
 float getLinearGradientAngle()
           Returns or sets the angle of a gradient.
 byte getLinearGradientScaled()
           Determines whether a gradient is scaled.
 IPresentation getPresentation()
           Returns the parent presentation of a gradient.
 IBaseSlide getSlide()
           Returns the parent slide of a gradient.
 int getTileFlip()
           Returns or sets the flipping mode for a gradient.
 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 setGradientDirection(int value)
           
 void setGradientShape(byte value)
           
 void setLinearGradientAngle(float value)
           
 void setLinearGradientScaled(byte value)
           
 void setTileFlip(int value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object obj)

Determines whether the two GradientFormat instances are equal.

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


Overriden to make compiler happy. Always returns constant because object is mutable.


getTileFlip

public int getTileFlip()

Returns or sets the flipping mode for a gradient. Read/write TileFlip.

Specified by:
getTileFlip in interface IGradientFormat

setTileFlip

public void setTileFlip(int value)
Specified by:
setTileFlip in interface IGradientFormat

getGradientDirection

public int getGradientDirection()

Returns or sets the style of a gradient. Read/write GradientDirection.

Specified by:
getGradientDirection in interface IGradientFormat

setGradientDirection

public void setGradientDirection(int value)
Specified by:
setGradientDirection in interface IGradientFormat

getLinearGradientAngle

public float getLinearGradientAngle()

Returns or sets the angle of a gradient. Read/write float.

Specified by:
getLinearGradientAngle in interface IGradientFormat

setLinearGradientAngle

public void setLinearGradientAngle(float value)
Specified by:
setLinearGradientAngle in interface IGradientFormat

getLinearGradientScaled

public byte getLinearGradientScaled()

Determines whether a gradient is scaled. Read/write NullableBool.

Specified by:
getLinearGradientScaled in interface IGradientFormat

setLinearGradientScaled

public void setLinearGradientScaled(byte value)
Specified by:
setLinearGradientScaled in interface IGradientFormat

getGradientShape

public byte getGradientShape()

Returns or sets the shape of a gradient. Read/write GradientShape.

Specified by:
getGradientShape in interface IGradientFormat

setGradientShape

public void setGradientShape(byte value)
Specified by:
setGradientShape in interface IGradientFormat

getGradientStops

public IGradientStopCollection getGradientStops()

Returns the collection of gradient stops. Read-only GradientStopCollection.

Specified by:
getGradientStops in interface IGradientFormat

getSlide

public IBaseSlide getSlide()

Returns the parent slide of a gradient. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a gradient. Read-only Presentation.

Specified by:
getPresentation in interface IPresentationComponent