PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.shadings Package / PDFAxialShading Class / setDomain Method
An array of two numbers [t0 t1] specifying the limiting values of a parametric variable t.
Collapse All Expand All
In This Topic

setDomain Method
In This Topic
Sets the shading domain.
The variable is considered to vary linearly between these two values as the color gradient varies between the starting and ending points of the axis. The variable t becomes the input argument to the shading function.
Syntax

    public void setDomain(
       double[] value
    )

#### Parameters

value
  An array of two numbers [t0 t1] specifying the limiting values of a parametric variable t.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | Thrown when the domain array length is not equal to 2.

See Also

#### Reference

PDFAxialShading Class
PDFAxialShading Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.