SolidGradient

Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.gradient.BaseGradient

public class SolidGradient extends BaseGradient

Gradient fill effect settings.

Constructors

ConstructorDescription
SolidGradient()Initializes a new instance of the SolidGradient class.

Methods

MethodDescription
addColorPoint()Adds the color point.
addTransparencyPoint()Adds the color point.
equals(Object arg0)
generateLfx2ResourceNodes()Generates the LFX2 resource nodes.
getClass()
getColor()Gets or sets the color.
getColorPoints()Gets or sets the color points.
getGradientMode()Gets the mode for this gradient.
getGradientName()Gets or sets the name of the gradient.
getInterpolation()Gets ot sets Interpolation.
getTransparencyPoints()Gets or sets the transparency points.
hashCode()
notify()
notifyAll()
removeColorPoint(IGradientColorPoint point)Removes the color point.
removeTransparencyPoint(IGradientTransparencyPoint point)Removes the transparency point.
setColor(Color value)Gets or sets the color.
setColorPoints(IGradientColorPoint[] value)Gets or sets the color points.
setGradientName(String value)Gets or sets the name of the gradient.
setInterpolation(short value)Gets ot sets Interpolation.
setTransparencyPoints(IGradientTransparencyPoint[] value)Gets or sets the transparency points.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

SolidGradient()

public SolidGradient()

Initializes a new instance of the SolidGradient class.

addColorPoint()

public final GradientColorPoint addColorPoint()

Adds the color point.

Returns: GradientColorPoint - Created color point

addTransparencyPoint()

public final GradientTransparencyPoint addTransparencyPoint()

Adds the color point.

Returns: GradientTransparencyPoint - Created transparency point

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

generateLfx2ResourceNodes()

public static System.Collections.Generic.List<OSTypeStructure> generateLfx2ResourceNodes()

Generates the LFX2 resource nodes.

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure> - Generated List of OSTypeStructure

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public final Color getColor()

Gets or sets the color.

Value: The color.

Returns: Color

getColorPoints()

public final IGradientColorPoint[] getColorPoints()

Gets or sets the color points.

Value: The color points.

Returns: com.aspose.psd.fileformats.psd.layers.IGradientColorPoint[]

getGradientMode()

public int getGradientMode()

Gets the mode for this gradient. Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1).

Returns: int

getGradientName()

public final String getGradientName()

Gets or sets the name of the gradient.

Value: The name of the gradient.

Returns: java.lang.String

getInterpolation()

public final short getInterpolation()

Gets ot sets Interpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’. Value range: 0-4096.

Returns: short

getTransparencyPoints()

public final IGradientTransparencyPoint[] getTransparencyPoints()

Gets or sets the transparency points.

Value: The transparency points.

Returns: com.aspose.psd.fileformats.psd.layers.fillsettings.IGradientTransparencyPoint[]

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeColorPoint(IGradientColorPoint point)

public final void removeColorPoint(IGradientColorPoint point)

Removes the color point.

Parameters:

ParameterTypeDescription
pointIGradientColorPointThe point.

removeTransparencyPoint(IGradientTransparencyPoint point)

public final void removeTransparencyPoint(IGradientTransparencyPoint point)

Removes the transparency point.

Parameters:

ParameterTypeDescription
pointIGradientTransparencyPointThe point.

setColor(Color value)

public final void setColor(Color value)

Gets or sets the color.

Value: The color.

Parameters:

ParameterTypeDescription
valueColor

setColorPoints(IGradientColorPoint[] value)

public final void setColorPoints(IGradientColorPoint[] value)

Gets or sets the color points.

Value: The color points.

Parameters:

ParameterTypeDescription
valueIGradientColorPoint[]

setGradientName(String value)

public final void setGradientName(String value)

Gets or sets the name of the gradient.

Value: The name of the gradient.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setInterpolation(short value)

public final void setInterpolation(short value)

Gets ot sets Interpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’. Value range: 0-4096.

Parameters:

ParameterTypeDescription
valueshort

setTransparencyPoints(IGradientTransparencyPoint[] value)

public final void setTransparencyPoints(IGradientTransparencyPoint[] value)

Gets or sets the transparency points.

Value: The transparency points.

Parameters:

ParameterTypeDescription
valueIGradientTransparencyPoint[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int