XpsLinearGradientBrush

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsBrush, com.aspose.xps.XpsTransformableBrush, com.aspose.xps.XpsGradientBrush

public final class XpsLinearGradientBrush extends XpsGradientBrush

Class incapsulating LinearGradientBrush property element features. This element is used to specify a linear gradient brush along a vector.

Methods

MethodDescription
deepClone()Clones this linear gradient brush.
equals(Object arg0)
getClass()
getColorInterpolationMode()Returns value specifying the gamma function for color interpolation.
getEndPoint()Returns the end point of the linear gradient.
getGradientStops()Returns list of gradient stops that comprise the gradient.
getOpacity()Returns value defining the uniform transparency of the brush fill.
getSpreadMethod()Returns value describing how the brush should fill the content area outside of the primary, initial gradient area.
getStartPoint()Returns the starting point of the linear gradient.
getTransform()Returns the matrix transformation applied to the coordinate space of the brush.
hashCode()
notify()
notifyAll()
setColorInterpolationMode(XpsColorInterpolationMode value)Sets value specifying the gamma function for color interpolation.
setEndPoint(Point2D value)Returns/sets the end point of the linear gradient.
setGradientStops(List value)Sets list of gradient stops that comprise the gradient.
setOpacity(float value)Sets value defining the uniform transparency of the brush fill.
setSpreadMethod(XpsSpreadMethod value)Sets value describing how the brush should fill the content area outside of the primary, initial gradient area.
setStartPoint(Point2D value)Sets the starting point of the linear gradient.
setTransform(XpsMatrix value)Sets the matrix transformation applied to the coordinate space of the brush.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

deepClone()

public XpsLinearGradientBrush deepClone()

Clones this linear gradient brush.

Returns: XpsLinearGradientBrush - Clone of this linear gradient brush.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColorInterpolationMode()

public XpsColorInterpolationMode getColorInterpolationMode()

Returns value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.

Returns: XpsColorInterpolationMode - Value specifying the gamma function for color interpolation.

getEndPoint()

public Point2D getEndPoint()

Returns the end point of the linear gradient.

Returns: java.awt.geom.Point2D - The end point of the linear gradient.

getGradientStops()

public List<XpsGradientStop> getGradientStops()

Returns list of gradient stops that comprise the gradient.

Returns: java.util.List<com.aspose.xps.XpsGradientStop> - List of gradient stops that comprise the gradient.

getOpacity()

public float getOpacity()

Returns value defining the uniform transparency of the brush fill.

Returns: float - Value defining the uniform transparency of the brush fill.

getSpreadMethod()

public XpsSpreadMethod getSpreadMethod()

Returns value describing how the brush should fill the content area outside of the primary, initial gradient area.

Returns: XpsSpreadMethod - Value describing how the brush should fill the content area outside of the primary, initial gradient area.

getStartPoint()

public Point2D getStartPoint()

Returns the starting point of the linear gradient.

Returns: java.awt.geom.Point2D - The starting point of the linear gradient.

getTransform()

public XpsMatrix getTransform()

Returns the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using the local effective render transform.

Returns: XpsMatrix - The matrix transformation applied to the coordinate space of the brush.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setColorInterpolationMode(XpsColorInterpolationMode value)

public void setColorInterpolationMode(XpsColorInterpolationMode value)

Sets value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.

Parameters:

ParameterTypeDescription
valueXpsColorInterpolationModeValue specifying the gamma function for color interpolation.

setEndPoint(Point2D value)

public void setEndPoint(Point2D value)

Returns/sets the end point of the linear gradient.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Point2DThe end point of the linear gradient.

setGradientStops(List value)

public void setGradientStops(List<XpsGradientStop> value)

Sets list of gradient stops that comprise the gradient.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.xps.XpsGradientStop>List of gradient stops that comprise the gradient.

setOpacity(float value)

public void setOpacity(float value)

Sets value defining the uniform transparency of the brush fill.

Parameters:

ParameterTypeDescription
valuefloatValue defining the uniform transparency of the brush fill.

setSpreadMethod(XpsSpreadMethod value)

public void setSpreadMethod(XpsSpreadMethod value)

Sets value describing how the brush should fill the content area outside of the primary, initial gradient area.

Parameters:

ParameterTypeDescription
valueXpsSpreadMethodValue describing how the brush should fill the content area outside of the primary, initial gradient area.

setStartPoint(Point2D value)

public void setStartPoint(Point2D value)

Sets the starting point of the linear gradient.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Point2DThe starting point of the linear gradient.

setTransform(XpsMatrix value)

public void setTransform(XpsMatrix value)

Sets the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using the local effective render transform.

Parameters:

ParameterTypeDescription
valueXpsMatrixThe matrix transformation applied to the coordinate space of the brush.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int