Pivot Table Defining the ADF Data Visualization Components

Introduction to ADF Data Visualization Components 23-11 Figure 23–13 Component Gallery for Hierarchy Viewer

23.3 Providing Data for ADF Data Visualization Components

All data visualization components can be bound to row set data collections in an ADF data control. For information and examples of data binding these components to data controls, see the Creating Databound ADF Data Visualization Components chapter in the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. Graphs and gauges have a tabularData method that lets you provide CSV Comma Separated Value data from a method that is stored in a managed bean. The Gantt chart component supports the use of a basic tree data control when you want to provide data not only for tasks and resources but also for subtasks and subresources.

23.4 Downloading Custom Fonts for Flash Images

Graph and gauge components provide text rotation, high fidelity display, and embedded fonts using Flash image types. The Flash engine is a prebuilt Shockwave Flash SWF file containing precompiled ActionScript code used to display a graph or gauge by using an XML definition of a chart. The Flash engine is downloaded and instantiated by a Flash Player embedded in the client browser at runtime. Embedded fonts are used for display and printing purposes, they are not installed on the client, and they cannot be edited. They are used by the Flash Player, in memory, and are cleared when the player terminates. Although embedded fonts require a roundtrip to the server to download the font SWF file, they provide a consistent look across all clients, support text rotation, and minimize distortion or anti-aliasing. 23-12 Web User Interface Developers Guide for Oracle Application Development Framework Oracle provides one font, Albany WT, for use in Flash images when necessary. This font does not provide any non-plain variations such as Bold or Italic. The Albany WT font is used instead of the default font to support certain animations not supported by Flash with device fonts, if the application does not specify and provide its own embedded font to use instead. Specific fonts and their respective SWF files can be added to your application as embedded fonts to be passed to the Flash engine. The engine will defer-load any font specified in the list until that font is required by any text or labels in a graph or gauge definition. Example 23–1 defines the Georgia font with a Bold and Italic combination. Example 23–1 SWF File package { import.flash.display.Sprite; import.flash.text.Font; public class fGeorgiaBoldItalic extends Srite [Embed source=c:\\WINDOWS\\Fonts\\GEORGIABI.TTF, fontName=Georgia Bold Italic, fontWeight=Bold, fontStyle=Italic. mimType=applicationx-font-truetype] private statis car font1:Class; public function fGeorgiaBoldItalic { Font registerFontfont1; } } } You can set graph and gauge font attributes as follows: ■ fontEmbedding: Defines whether or not the embedded fonts are used. Some performance may be gained by setting the attribute to none. ■ fontMap: Contains the actual map of the fonts that should be used for embedding. The map contains the name of a font and a URL where the custom font SWF file can be found.