image\bbj40.gif 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, string xLabel, string yLabel, int seriesCount, int categoryCount, 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 is3D, boolean isHorizontal, string flags)

Methods of BBjBarChart

Return Value

Method

boolean

is3D()

string

getTitle()

string

getXLabel()

string

getYLabel()

boolean

isLegendShown()

void

setBarValue(int series, int category, int value)

void

setCategoryName(int category, string name)

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()

BBjVector

getDropTypes()

void

setDropActions(int actions)

void

setDropType(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

org.jfree.chart.JFreeChart@

getClientChart()

void

writePNGToServer(string filename)

void

writePNGToServer(string filename, boolean writeAlpha, int compression)

Methods of BBjBarChart inherited from BBjControl

Events

Callback Code

Object-oriented Event

Read Record Event

Code

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

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.