BBjPieChart
Description
In BBj 7.00 and higher, the BBjPieChart control displays data in a pie chart format.
Implemented Interfaces
DropTarget, Focusable, TabTraversable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjPieChart
A BBjPieChart object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
BBjPieChart |
addPieChart(boolean showLegend, boolean is3D) |
BBjPieChart |
addPieChart(boolean showLegend, boolean is3D, byte[] flags) |
BBjPieChart |
addPieChart(int ID, boolean showLegend, boolean is3D) |
BBjPieChart |
addPieChart(int ID, boolean showLegend, boolean is3D, byte[] flags) |
BBjPieChart |
addPieChart(int ID, number x, number y, number w, number h, boolean showLegend, boolean is3D) |
BBjPieChart |
addPieChart(int ID, number x, number y, number w, number h, boolean showLegend, boolean is3D, byte[] flags) |
Methods of BBjPieChart
Return Value |
Method |
---|---|
string |
getTitle() |
boolean |
is3D() |
boolean |
|
void |
setLegendShown(boolean legendShown) |
void |
setSliceValue(string key, double value) |
void |
setTitle(string label) |
Methods of BBjPieChart implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjPieChart implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjPieChart implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjPieChart inherited from BBjCommonChart
Return Value |
Method |
---|---|
void |
Methods of BBjPieChart inherited from BBjChart
Return Value |
Method |
---|---|
void |
writePNGToServer(string filename) |
void |
writePNGToServer(string filename, boolean writeAlpha, int compression) |
void |
writePNGToServer(string filename, number width, number height, boolean writeAlpha, int compression) |
Methods of BBjPieChart inherited from BBjControl
Events
Callback Code | Object-oriented Event | Read Record Event | Code |
---|---|---|---|
ON_DROP_TARGET_DROP | BBjDropTargetDropEvent | Drop Target Drop Event | D |
ON_GAINED_FOCUS | BBjGainedFocusEvent | Control Focus Gained/Lost Event | f |
ON_LOST_FOCUS | BBjLostFocusEvent | Control Focus Gained/Lost Event | f |
ON_MOUSE_ENTER | BBjMouseEnterEvent | Mouse Enter/Exit Event | E |
ON_MOUSE_EXIT | BBjMouseExitEvent | Mouse Enter/Exit Event | E |
ON_POPUP_REQUEST | BBjPopupRequestEvent | Popup Request Event | r |
ON_RIGHT_MOUSE_DOWN | BBjRightMouseDownEvent | Right Mouse Button Down Event | R |
CSS
The visual appearance of BUI controls is defined using CSS (cascading style sheets) rules. Easily change the default colors, border, and other settings by customizing these rules, all without changing any application code. See CSS API for a high-level overview of BUI CSS.
The BUI BBjPieChart is implemented as an <image> element. It defines the following style names:
.BBjPieChart
.BBjPieChart.bbj-disabled
Use CSS styles that would work with images, for example:
|
That adds a rounded border and drop shadow to the chart image, and dims it unless the mouse is hovering over it.
Or to show a disabled BBjPieChart grayed out:
|
Remarks
None.
Constants inherited from BBjControl
Example
See Also
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.