public class BBjDialChartProgress
BBjDialChartProgress
In BBj 20.00 and higher, the BBjDialChartProgress
is a BBj Custom Class to help build dial charts
for displaying progress (instead of a typical progress bar) more easily by acting as a proxy between a BBj
program that wants to use a dial chart and the underlying JFreeChart.
The file includes a small sample program at the top of the file that demonstrates using the custom class.
THROW
n Error Codes:
700
: Missing background image file. The specified file does not exist.Constructor and Description |
---|
BBjDialChartProgress() BBjDialChartProgress constructor that creates the object with defaults Note 1: If the client's screen is HiDPI, then the underlying JFreeChart will be rendered at high resolution
Note 2: if the calling program has an active |
BBjDialChartProgress(BBjString p_backgroundImagePath!)
Note 1: If the client's screen is HiDPI, then the underlying JFreeChart will be rendered at high resolution
Note 2: You can use an image with the
Note 3: if the calling program has an active |
Modifier and Type | Method and Description |
---|---|
void | destroy() Method to destroy the dial chart, used when you are finished using it |
BBjNumber | getValue() Method to get the dial chart's current value which is in the range from 0 to 100, indicating percentage complete |
void | OnMouseDown(BBjMouseDownEvent p_event!) An internal method used by the |
void | OnMouseMove(BBjMouseMoveEvent p_event!) An internal method used by the |
void | OnMouseUp(BBjMouseUpEvent p_event!) An internal method used by the |
static void | runDemo() Method that runs a sample demo program for the BBjDialChartProgress class |
void | setValue(BBjNumber p_value) Method to set the dial chart's value where the acceptible value ranges from 0 to 100, indicating percentage complete |
void | setVisible(BBjNumber p_visible) Method to set the dial chart's window visible |
public BBjDialChartProgress()
BBjDialChartProgress constructor that creates the object with defaults
Note 1: If the client's screen is HiDPI, then the underlying JFreeChart will be rendered at high resolution
Note 2: if the calling program has an active PROCESS_EVENTS
loop, then it will be possible for the user to drag and reposition the progress window
public BBjDialChartProgress(BBjString p_backgroundImagePath!)
BBjDialChartProgress
constructor that creates the object with a custom background image
Note 1: If the client's screen is HiDPI, then the underlying JFreeChart will be rendered at high resolution
Note 2: You can use an image with the @2x
suffix to indicate a HiDPI image, as in "myDialBackground@2x.png"
Note 3: if the calling program has an active PROCESS_EVENTS
loop, then it will be possible for the user to drag and reposition the progress window
p_backgroundImagePath!
A BBjString with the fully-qualified path to an image file that will be used as the chart's backgroundpublic void destroy()
Method to destroy the dial chart, used when you are finished using it
public BBjNumber getValue()
Method to get the dial chart's current value which is in the range from 0 to 100, indicating percentage complete
public void OnMouseDown(BBjMouseDownEvent p_event!)
An internal method used by the BBjDialChartProgress
that is called when the mouse is pressed down on the control's window. The OnMouse* events are used specifically for draggging the BBjDialChartProgress
.
p_event!
BBjMouseDownEvent that contains event informationpublic void OnMouseMove(BBjMouseMoveEvent p_event!)
An internal method used by the BBjDialChartProgress
that is called when the mouse is moved in the control's window. The OnMouse* events are used specifically for draggging the BBjDialChartProgress
.
p_event!
BBjMouseMoveEvent that contains event informationpublic void OnMouseUp(BBjMouseUpEvent p_event!)
An internal method used by the BBjDialChartProgress
that is called when the mouse is released in the control's window. The OnMouse* events are used specifically for draggging the BBjDialChartProgress
.
p_event!
BBjMouseUpEvent that contains event informationpublic static void runDemo()
Method that runs a sample demo program for the BBjDialChartProgress class
public void setValue(BBjNumber p_value)
Method to set the dial chart's value where the acceptible value ranges from 0 to 100, indicating percentage complete
public void setVisible(BBjNumber p_visible)
Method to set the dial chart's window visible