You can use these properties and methods to apply textures
and gradients to graph objects. To use a gradient or texture, the
setFillType() method must select a gradient (setFillType(2);) or
texture (setFillType(3);).
- get/setGradientDirection();
These methods get/set the gradient pin direction.
- get/setGradientNumPins();
These methods get/set the number of pins in a gradient.
- get/setGradientPinLeftColor();
These methods get/set the left color of the gradient pin.
- get/setGradientPinPosition();
These methods get/set the gradient pin position.
- get/setGradientPinRightColor();
These methods get/set the right color of the gradient pin.
- getTexture();
This method determines if a texture has been applied to a specific
object in a graph or any object in a graph. When you supply a texture
name (that is, a .GIF file name) as an input parameter, the method
identifies whether or not the named texture is applied to any object
in the graph. If you specify an object ID (for example, getTexture (getSeries(1)
);), the method identifies whether or not a texture is applied to
the specific object.
- get/setTextureDisplayMode();
These methods get/set the texture display mode assigned to a specific
object or all objects in a graph.
- setTextureURL();
This method loads a texture from a file and applies it to object(s)
in a graph. You must set the fill type of the object(s) to texture
using the setFillType() method (for example, setFillType (getSeries(1),
3);).
Example:
The following code shows how you can use the setFillType() and
texture methods to assign a texture to series one in a graph.
setFillType(getSeries(1), 3 );
setTextureDisplayMode(getSeries(1), 0 );
setTextureURL(getSeries(1), "Hard_Rock_Green.gif" );