public class BBjBUIDialChart
BBjBUIDialChart
In BBj 20.00 and higher, the BBjBUIDialChart
is a BBj Custom Class to help build dial charts
more easily by acting as a proxy between a BBj program that wants to use a dial chart and the underlying
JFreeChart.
Constructor and Description |
---|
BBjBUIDialChart() BBjBUIDialChart constructor that creates the object with default values |
BBjBUIDialChart(BBjString p_backgroundImage$) BBjBUIDialChart constructor that creates the object with a custom background image |
BBjBUIDialChart(BBjColor p_borderColor!, BBjNumber p_dialVisible) BBjBUIDialChart constructor that creates the object with a custom background image and a number indicating whether the dial should be initially visible |
BBjBUIDialChart(BBjString p_title$, BBjNumber p_value) BBjBUIDialChart constructor that creates the object with a custom title string and value |
BBjBUIDialChart(BBjString p_title$, BBjNumber p_value, BBjColor p_bgColor!, BBjColor p_fgColor!, BBjFont p_font!) BBjBUIDialChart constructor that creates the object with all available parameters |
Modifier and Type | Method and Description |
---|---|
void | addDataset(BBjNumber datasetNumber, BBjNumber initialValue, BBjNumber pointerType, BBjNumber pointerRadius) |
void | addDataset(BBjNumber datasetNumber, BBjNumber initialValue, BBjNumber pointerType, BBjNumber pointerRadius, Color needleColor!, Color pointerFillColor!, Color pointerOutlineColor!) |
BBjImage | getChartImage(BBjNumber p_width, BBjNumber p_height) Method to get a screenshot of the chart in the form of a BBjImage sized to the provided width and height parameters |
Color | getColor(BBjColor color!) |
Color | getColorWithAlpha(BBjColor color!, BBjNumber alpha) |
org.jfree.data.general.DefaultValueDataset | getDataset(BBjNumber datsetNumber) |
Font | getFont(BBjFont p_font!) |
org.jfree.chart.JFreeChart | getJFreeChart() Method to get the underlying JFreeChart so that it can be further manipulated if desired |
BBjNumber | getValue(BBjNumber p_datasetNumber) Method to get the value of the dial chart |
void | setAnnotation(BBjString p_title$, BBjFont p_font!, BBjColor color!, BBjNumber radius, BBjNumber angle) |
BBjNumber | setBackgroundImage(BBjString imageFile$) |
BBjNumber | setBackgroundImageResized(BBjString imageFile$, BBjNumber p_width, BBjNumber p_height) |
void | setChartBackgroundColor(BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber alpha) |
void | setDialBackgroundColor(BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber alpha) |
void | setDialCap(BBjNumber dialCapSize, BBjColor outlineColor!, BBjColor fillColor!) |
void | setDialSize(BBjNumber p_sizePercentage) |
void | setDialSize(BBjNumber p_sizePercentageWidth, BBjNumber p_sizePercentageHeight) |
void | setGradient(BBjColor color1!, BBjColor color2!, BBjNumber verticalOrientation) |
void | setGradientWithAlpha(BBjColor color1!, BBjNumber alpha1, BBjColor color2!, BBjNumber alpha2, BBjNumber verticalOrientation) |
void | setScale(BBjNumber scaleNumber, BBjNumber rangeBottom, BBjNumber rangeTop, BBjNumber majorTickIncrement, BBjNumber scaleStartDegrees, BBjNumber scaleRangeDegrees, BBjNumber scaleRadius, BBjNumber scaleLength, BBjFont p_font!, BBjNumber labelOffset, BBjColor tickColor!, BBjNumber minorTickCount) |
void | setTitle(BBjString p_title$) |
void | setValue(BBjNumber p_datasetNumber, BBjNumber p_value) Method to set the value of the dial chart |
void | setValueIndicator(BBjNumber datasetNumber, BBjFont p_font!, BBjColor p_fgColor!, BBjColor p_bgColor!, BBjColor outlineColor!, BBjNumber radius, BBjNumber angle) |
void | setView(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height) |
public BBjBUIDialChart()
BBjBUIDialChart constructor that creates the object with default values
public BBjBUIDialChart(BBjString p_backgroundImage$)
BBjBUIDialChart constructor that creates the object with a custom background image
p_backgroundImage$
A BBjString with the fully-qualified path to an image file that will be used as the chart's backgroundpublic BBjBUIDialChart(BBjColor p_borderColor!, BBjNumber p_dialVisible)
BBjBUIDialChart constructor that creates the object with a custom background image and a number indicating whether the dial should be initially visible
p_borderColor!
A BBjColor that will be used for the foreground and background color of the dial framedialVisible
A BBjNumber acting as a boolean that determines whether the dial should be visible where 0=not visible and 1=visiblepublic BBjBUIDialChart(BBjString p_title$, BBjNumber p_value)
BBjBUIDialChart constructor that creates the object with a custom title string and value
p_title$
A BBjString that will be used for the chart's titlep_value
A BBjNumber that sets the dial's initial valuepublic BBjBUIDialChart(BBjString p_title$, BBjNumber p_value, BBjColor p_bgColor!, BBjColor p_fgColor!, BBjFont p_font!)
BBjBUIDialChart constructor that creates the object with all available parameters
p_title$
A BBjString that will be used for the chart's titlep_value
A BBjNumber that sets the dial's initial valuep_bgColor!
A BBjColor that will be used for the chart's background colorp_fgColor!
A BBjColor that will be used for the chart's foreground colorp_font!
A BBjFont that will be used for the chart's titlepublic void addDataset(BBjNumber datasetNumber, BBjNumber initialValue, BBjNumber pointerType, BBjNumber pointerRadius)
public void addDataset(BBjNumber datasetNumber, BBjNumber initialValue, BBjNumber pointerType, BBjNumber pointerRadius, Color needleColor!, Color pointerFillColor!, Color pointerOutlineColor!)
public BBjImage getChartImage(BBjNumber p_width, BBjNumber p_height)
Method to get a screenshot of the chart in the form of a BBjImage sized to the provided width and height parameters
p_width
A BBjNumber that sets the width of the returned BBjImagep_height
A BBjNumber that sets the height of the returned BBjImagepublic Color getColor(BBjColor color!)
public Color getColorWithAlpha(BBjColor color!, BBjNumber alpha)
public org.jfree.data.general.DefaultValueDataset getDataset(BBjNumber datsetNumber)
public Font getFont(BBjFont p_font!)
public org.jfree.chart.JFreeChart getJFreeChart()
Method to get the underlying JFreeChart so that it can be further manipulated if desired
public BBjNumber getValue(BBjNumber p_datasetNumber)
Method to get the value of the dial chart
p_datasetNumber
A BBjNumber specifying the dataset index to querypublic void setAnnotation(BBjString p_title$, BBjFont p_font!, BBjColor color!, BBjNumber radius, BBjNumber angle)
public BBjNumber setBackgroundImage(BBjString imageFile$)
public BBjNumber setBackgroundImageResized(BBjString imageFile$, BBjNumber p_width, BBjNumber p_height)
public void setChartBackgroundColor(BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber alpha)
public void setDialBackgroundColor(BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber alpha)
public void setDialCap(BBjNumber dialCapSize, BBjColor outlineColor!, BBjColor fillColor!)
public void setDialSize(BBjNumber p_sizePercentage)
public void setDialSize(BBjNumber p_sizePercentageWidth, BBjNumber p_sizePercentageHeight)
public void setGradient(BBjColor color1!, BBjColor color2!, BBjNumber verticalOrientation)
public void setGradientWithAlpha(BBjColor color1!, BBjNumber alpha1, BBjColor color2!, BBjNumber alpha2, BBjNumber verticalOrientation)
public void setScale(BBjNumber scaleNumber, BBjNumber rangeBottom, BBjNumber rangeTop, BBjNumber majorTickIncrement, BBjNumber scaleStartDegrees, BBjNumber scaleRangeDegrees, BBjNumber scaleRadius, BBjNumber scaleLength, BBjFont p_font!, BBjNumber labelOffset, BBjColor tickColor!, BBjNumber minorTickCount)
public void setTitle(BBjString p_title$)
public void setValue(BBjNumber p_datasetNumber, BBjNumber p_value)
Method to set the value of the dial chart
p_datasetNumber
A BBjNumber specifying the dataset index to modifyp_value
A BBjNumber specifying the value for the dialpublic void setValueIndicator(BBjNumber datasetNumber, BBjFont p_font!, BBjColor p_fgColor!, BBjColor p_bgColor!, BBjColor outlineColor!, BBjNumber radius, BBjNumber angle)
public void setView(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height)