Adding Animation to Gauges

Using ADF Gauge Components 25-25 ■ Transformations ■ Paths ■ Basic shapes ■ Fill and stroke painting ■ Linear and radial gradients SVG features that are not supported by custom shapes in JDeveloper include: ■ Unit Identifiers: All coordinates and lengths should be specified without the unit identifiers, and are assumed to be in pixels. The parser does not support unit identifiers, because the size of certain units can vary based on the display used. For example, an inch may correspond to different numbers of pixels on different displays. The only exceptions to this are gradient coordinates, which can be specified as percentages. ■ Text: All text on the gauge is considered data, and should be specified through the tags or data binding. ■ Specifying Paint: The supported options are none, 6-digit hexadecimal, and a uri reference to a gradient. ■ Fill Properties: The fill-rule attribute is not supported. ■ Stroke Properties: The stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-disarray, and stroke-opacity attributes are not supported. ■ Linear Gradients and Radial Gradients: The gradientUnits, gradientTransform, spreadMethod, and xlink:href are not supported. Additionally, the r, fx, and fy attributes on the radial gradient are not supported. ■ Elliptical Arc Out-of-Range Parameters: If rx, ry, and x-axis-rot are too small such that there is no solution, the ellipse should be scaled uniformly until there is exactly one solution. The SVG parser will not support this. ■ General Error Conditions: The SVG input is expected to be well formed and without errors. The SVG parser will not perform any error checking or error recovery for incorrectly formed files, and it will stop parsing when it encounters an error in the file.

25.6.4 How to Set Custom Shapes Styles

In addition to the ability to specify custom shapes for gauges, there are a set of prebuilt custom shapes styles for use with the gauge components. The available styles are: ■ Rounded rectangle ■ Full circle ■ Beveled circle Figure 25–11 shows a dial gauge displayed with each of the custom shapes styles applied.