Use the specialEffects tag to set gradient properties of a subcomponent of a graph or gauge.
The specialEffects tag may be a child of the following components:
graph:
background, legendArea, graphPlotArea, graphPieFrame, referenceObject, series, timeSelector
gauge:
gaugeBackground, gaugeSetBackground, gaugePlotArea, gaugeFrame, gaugeLegendArea,
lowerLabelFrame, upperLabelFrame, threshold, indicator, indicatorBase, indicatorBar, threshold
The specialEffects tag can have a child tag: gradientStopStyle
The following example shows the XML for a gradient fill for a gauge background.
<dvt:gauge> <dvt:gaugeBackground borderColor="#848284"> <dvt:specialEffects fillType="FT_GRADIENT" gradientDirection="GD_RADIAL" gradientNumStops="2"> <dvt:gradientStopStyle stopIndex="0" gradientStopPosition="60" gradientStopColor="#FFFFCC"/> <dvt:gradientStopStyle stopIndex="1" gradientStopPosition="90" gradientStopColor="#FFFF99"/> </dvt:specialEffects> </dvt:gaugeBackground> </dvt:gauge>
Name | Type | Supports EL? | Description |
---|---|---|---|
id | java.lang.String | no | Specifies the identifier for the component |
fillType | java.lang.String | yes | Specifies whether a gradient or solid fill is used.
|
gradientDirection | java.lang.String | yes | Determines the direction of change for the gradient fill.
|
gradientNumStops | int | yes | Specifies the number of gradientStopStyles (number of colors) used. |