
BBjLineChart
Creation Path
|
+--BBjSysGui
|
+--BBjWindow
|
+--BBjLineChart
Description
In BBj 7.0 and higher, the BBjLineChart control displays data in a line chart format.
Implemented Interfaces
DropTarget, Focusable, TabTraversable
Creation
A BBjLineChart object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
BBjLineChart |
addLineChart(int controlID, int x, int y, int width, int height, boolean showLegend ) |
BBjLineChart |
addLineChart(int controlID, int x, int y, int width, int height, string xLabel, string yLabel, int numSeries, boolean showLegend ) |
BBjLineChart |
addLineChart(int controlID,int x, int y, int width, int height, string xLabel, string yLabel, int numSeries, boolean showLegend, string flags) |
Methods of BBjLineChart
Return Value |
Method |
string |
getTitle() |
string |
|
string |
|
boolean |
|
void |
setLegendShown(boolean legendShown) |
void |
setSeriesName(int series, string name) |
void |
setTitle(string title) |
void |
setXLabel(string label) |
void |
setXYValue(int series, int x, int y) |
void |
setYLabel(string label) |
Methods of BBjLineChart implemented for DropTarget
Return Value |
Method |
int |
|
void |
setDropActions(int actions) |
void |
setDropTypes(BBjVector types) |
Methods of BBjLineChart implemented for Focusable
Return Value |
Method |
boolean |
|
void |
setFocusable(boolean p_focus) |
Methods of BBjLineChart implemented for TabTraversable
Return Value |
Method |
boolean |
|
void |
setTabTraversable(boolean trav) |
Methods of BBjLineChart inherited from BBjCommonChart
Return Value |
Method |
void |
Methods of BBjLineChart inherited from BBjChart
Return Value |
Method |
void |
writePNGToServer(string filename) |
void |
writePNGToServer(string filename, boolean writeAlpha, int compression) |
void |
writePNGToServer(string filename, int width, int height, boolean writeAlpha, int compression) |
Methods of BBjLineChart inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
ON_DROP_TARGET_DROP |
D |
||
ON_GAINED_FOCUS |
f |
||
ON_LOST_FOCUS |
f |
||
ON_MOUSE_ENTER |
E |
||
ON_MOUSE_EXIT |
E |
||
ON_POPUP_REQUEST |
r |
||
ON_RIGHT_MOUSE_DOWN |
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 BBjLineChart is implemented as an <image> element. It defines the following style names:
.BBjLineChart
.BBjLineChart.bbj-disabled
Use CSS styles that would work with images, for example:
.BBjLineChart { opacity: 0.4; border-radius: 15px; border-width: 2px; box-shadow: 7px 7px 5px rgba(50, 50, 50, 0.5); } .BBjLineChart:hover { opacity: 1.0; } |
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 BBjLineChart grayed out:
.BBjLineChart bbj-disabled { opacity: 0.4; } |
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.