BBjBarChart

Creation Path


BBjAPI

|

+--BBjSysGui

|

+--BBjWindow

|

+--BBjBarChart

Description

In BBj 7.0 and higher, the BBjBarChart control displays data in a bar chart format.

Implemented Interfaces

DropTarget, Focusable, TabTraversable

Creation

A BBjBarChart object is created through the following BBjWindow methods:

 

Return Value

Method

BBjBarChart

addBarChart(int ID, int x, int y, int width, int height, boolean showLegend, boolean is3D)

BBjBarChart

addBarChart(int ID, int x, int y, int width, int height, string xLabel, string yLabel, int seriesCount, int categoryCount, boolean showLegend, boolean is3D, boolean isHorizontal)

BBjBarChart

addBarChart(int ID, int x, int y, int width, int height, string xLabel, string yLabel, int seriesCount, int categoryCount, boolean showLegend, boolean is3D, boolean isHorizontal, string flags)

Methods of BBjBarChart

Return Value

Method

boolean

is3D()

int

getCategoryCount()

int

getSeriesCount()

string

getTitle()

string

getXLabel()

string

getYLabel()

boolean

isLegendShown()

void

setBarValue(int series, int category, int value)

void

setCategoryCount(int categories)

void

setCategoryName(int category, string name)

void

setLegendShown(boolean legendShown)

void

setSeriesCount(int series)

void

setSeriesName(int series, string name)

void

setTitle(string title)

void

setXLabel(string label)

void

setYLabel(string label)

Methods of BBjBarChart implemented for DropTarget

Return Value

Method

int

getDropActions()

void

setDropActions(int actions)

BBjVector

getDropTypes()

void

setDropTypes(BBjVector types)

Methods of BBjBarChart implemented for Focusable

Return Value

Method

boolean

isFocusable()

void

setFocusable(boolean p_focus)

Methods of BBjBarChart implemented for TabTraversable

Return Value

Method

boolean

isTabTraversable()

void

setTabTraversable(boolean trav)

Methods of BBjBarChart inherited from BBjCommonChart

Return Value

Method

void

clearData()

Methods of BBjBarChart inherited from BBjChart

Return Value

Method

JFreeChart@

getClientChart()

ClientChartPanel@

getClientChartPanel()

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 BBjBarChart 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 BBjBarChart is implemented in the browser as an <image> element; all graphing is done on the server. It defines the following style names:

.BBjBarChart

.BBjBarChart.bbj-disabled

Use CSS styles that would work with images, for example:

.BBjBarChart

{

  opacity: 0.4;

  border-radius: 15px;

  border-width: 2px;

  box-shadow: 7px 7px 5px rgba(50, 50, 50, 0.5);

}

.BBjBarChart: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 BBjBarChart grayed out:

.BBjBarChart bbj-disabled

{

  opacity: 0.4;

}

Remarks

None.

Constants inherited from BBjControl

Example

See Also

BBjAPI

BBjSysGui

BBjWindow

CALLBACK Verb - Register BBj Subroutine

Focusable

TabTraversable

ClientObject Tutorial

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.