public interface IDataPointSet
Modifier and Type | Field and Description |
---|---|
static int |
DAY |
static int |
HOUR |
static int |
MINUTE |
static int |
MONTH |
static int |
SECOND |
static int |
TICKER |
static int |
WEEK |
static int |
YEAR
Constants for the Ticker/Date/Time units
|
Modifier and Type | Method and Description |
---|---|
boolean |
areConnectLinesVisible()
Returns whether or not the chart currently displays connecting lines for the data points.
|
boolean[] |
areHidden(int colIndex)
This function is used to get the hidden status of column values in the legend.
|
boolean |
arePointsUniformForLine()
This method returns whether the points are drawn uniformly.
|
boolean |
arePointsVisible()
Returns the display status of the data points.
|
float |
getBarGapToWidthRatio()
Gets the ratio of the bar width and the distance between bars.
|
int |
getBottomNValue()
returns number of Bottom N value in a chart This feature only works with chart with category
only and ascending order has to be applied to the chart
|
java.awt.Color |
getCandleStickDownColor()
This method gets the downTick candlestick color.
|
java.awt.Color |
getCandleStickUpColor()
This method gets the upTick candlestick color.
|
float |
getCandleStickWidth()
This method gets the "wicker"--the hi & low extensions of candlesticks.
|
java.awt.Color[] |
getColors()
Returns the color scheme for the data points plotted in the chart.
|
java.awt.Color |
getDataBorderColor()
Returns border color of the data points for some chart types.
|
int |
getDataBorderThickness()
Returns border thickness of the data points for some chart types.
|
int[] |
getDataLineThickness()
This function returns the line thickness for 2D charts
|
int |
getGridStep(int colIndex)
Deprecated.
Please use getTickerStep(int colIndex) The step size of ticker should equal step
size of grid, except after label filtering for date-time chart
|
IHint |
gethHint()
Used to get a handle to the IHint interface.
|
ILabel |
gethLabel()
Returns a handle to the properties of the labels at the top of data points.
|
ILabel |
gethSecondaryLabel()
Returns a handle to the properties of the labels at the top of data points of secondary axis.
|
IFormat |
getLabelFormat(int colIndex)
This function is used to get the label format for the given column index.
|
int |
getLabelStep(int colIndex)
This function returns the step size for the label display.
|
int |
getLabelUnit(int colIndex)
This function is used to obtain the unit information of the label Label unit is associated
with the individual column not the axis.
|
int[] |
getLineStyles()
Returns the line styles used to draw the different connect lines.
|
int |
getLineThickness()
Deprecated.
Please use getDataLineThickness() and use @link
ISecondaryChart#getDataLineThickness for secondary chart
|
int |
getLineXOffset()
Gets the X axis shift value in pixels.
|
float |
getMaxBarWidthRatioToPlotArea()
Gets the ratio of the max bar width to the plot area.
|
int |
getMaxDisplayCharactersForText()
Returns the number of display characters for text.
|
int |
getMaxLabelAndTickerCount(int colIndex)
This function returns the max number of the label and ticker display.
|
java.lang.Double |
getMaxYCutOffPointForScatter()
This method return the value of the max Y cut-off point for scatter chart
|
java.lang.String |
getNullColumnName()
Returns the display name for null data column in chart.
|
java.lang.String[] |
getOrder(int seriesType)
This function returns the data points in the series, category, or sum-by column.
|
java.util.Enumeration |
getOriginalTextList()
Returns all original text list for text replacement
|
int[] |
getPointShapes()
Returns the array of data point shapes displayed in the chart.
|
int[] |
getPointSizes()
Sets the point sizes for all the data points displayed in the chart.
|
int[] |
getPointsShapes() |
java.lang.String |
getReplacedText(java.lang.String originalText)
Returns a replaced text for a given original text
|
java.util.Enumeration |
getReplacedTextList()
Returns all replaced text list for text replacement
|
int |
getSortOrder(int seriesType)
return the sort order of the series, category, or sumby column to ascending or descending.
|
int |
getStackLabelAlignment()
Returns alignment position for the stack section labels alignment position:
QbChart.TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, QbChart.TOP_ALIGNMENT_INSIDE,
QbChart.BOTTOM_ALIGNMENT_INSIDE
|
int |
getTickerStep(int colIndex)
This function is used to retrieve the ticker step size for the given column index.
|
int |
getTopLabelAlignment()
Returns alignment position for the top labels alignment position: QbChart.TOP_ALIGNMENT,
CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, QbChart.TOP_ALIGNMENT_INSIDE,
QbChart.BOTTOM_ALIGNMENT_INSIDE
|
java.awt.Color |
getTopLabelColorOnNegativeSide()
Returns top label color for negative side
|
int |
getTopNValue()
returns number of Top N value in a chart This feature only works with chart with category
only and ascending order has to be applied to the chart
|
float |
getTranslucentValue()
This method returns translucent value of the chart (between 0 to 1.0, Transparent to solid)
The default value is 0.5f For QbChart.OVERLAY, QbChart.RADAR ,2D QbChart.AREA and Stack
Area-Col Combo only
|
int |
getValueSortOrder()
Returns sorting order of the value column in Original, Ascending or Descending order.
|
boolean |
isAreaVisible()
Returns the display status of the data area for radar chart.
|
boolean |
isBlackBorderVisibleForWhiteArea()
Returns whether or not a black border is drawn around the white data area for some chart
types.
|
boolean |
isBorderVisible()
Returns whether or not a border is drawn around the data points for some chart types.
|
boolean |
isConnectLinesInOriginalOrder()
Returns a boolean value that specifies if connecting lines are drawn in the original dataset
order.
|
boolean |
isDisableJava2DForStraightText()
Returns whether the Java2D Rotated Text method is using for 0, 90, 180...
|
boolean |
isDottedLineForNull()
Returns whether or not the display of dotted lines for missing or null data points is
enabled.
|
boolean |
isDrawNullColumn()
Returns whether or not to show null data column in chart.
|
boolean |
isEndToEnd()
Returns whether a chart is drawn from end to end (no gap).
|
boolean |
isJava2DRotateTextEnabled()
Returns whether the Java2D Rotate Text method is used
|
boolean |
isLabelOnNegativeSide()
Returns whether every label is forced to display on the negative side of the axis.
|
boolean |
isLabelOnPositiveSide()
Returns whether every label is forced to display on the positive side of the axis.
|
boolean |
isLimitAtAxisScale()
This function return the state of data limit If FALSE, no data limit If TRUE, no data can go
over axis max scale or go below axis min scale
|
boolean |
isNullDataAsZero()
Returns whether or not to treat null data as zero values.
|
boolean |
isPointBorderColorBlack()
Returns true if the color of the data point border is black.
|
boolean |
isPointBorderVisible()
Returns the display status of the data point border.
|
boolean |
isSaveColorsForCategories()
Returns whether colors of chart data points are assigned to category names.
|
boolean |
isShowNullInScatter()
Returns whether or not to show null data in scatter.
|
boolean |
isShowSeriesInTopLabel()
Returns whether a 2D scatter is showing series in top label.
|
boolean |
isShowShadowOnLine()
Returns whether or not the chart currently displays shadow on lines.
|
boolean |
isShowShadowOnPoint()
Returns whether or not the chart currently displays shadow on datapoints.
|
boolean |
isSingleColorForCategories()
Returns whether a single color is used for all categories.
|
boolean |
isStackSectionLabelVisible()
Returns whether the individual section labels in a StackBar, StackColumn, or StackArea Chart
is visible.
|
boolean |
isStackSectionTotalLabelVisible()
Returns the whether the total label in a StackBar, StackColumn, or StackArea Chart is
visible.
|
boolean |
isTranslucent()
This method returns whether the chart is translucent For QbChart.OVERLAY, QbChart.RADAR ,2D
QbChart.AREA and Stack Area-Col Combo only
|
boolean |
isUniqueColumnColorForColumnChart()
Returns whether a different color can be assigned to each column in column chart.
|
boolean |
isXAxisDrawnAtTop()
Returns a boolean value that specifies if X-Axis is drawn at the top.
|
boolean |
isZeroAsNullData()
Returns whether or not to treat zero values as null data.
|
void |
replace(java.lang.String originalText,
java.lang.String replacedText)
Replacing all occurrences of originalText in the chart with replacedText
|
void |
reverseOrder(int seriesType)
This function reverses the order of the data points in the series, category, or sum-by
column.
|
void |
setAreaVisible(boolean b)
Enables/Disables the display of data area in the radar chart.
|
void |
setBarGapToWidthRatio(float x)
Sets the bar gap to width ratio for bar/column charts.
|
void |
setBlackBorderVisibleForWhiteArea(boolean b)
Enables/Disables drawing of a black border around the white data area for some chart types.
|
void |
setBorderVisible(boolean b)
Enables/Disables drawing of a border around the data for some chart types.
|
void |
setBottomNValue(boolean enable,
int bottomVal)
set to display up to number of Bottom N data points in a chart This feature only works with
chart with category only and descending order has to be applied to the chart
|
void |
setCandleStickColors(java.awt.Color upTickColor,
java.awt.Color downTickColor)
This method sets the upTick and downTick candlestick colors.
|
void |
setCandleStickWidth(float wickerWidth)
This method sets the "wicker"--the hi & low extensions of candlesticks.
|
void |
setColors(java.awt.Color[] color)
Sets a color scheme for the data points plotted.
|
void |
setColors(java.awt.Color[] color,
java.awt.Color rootColor)
Sets a color scheme for the data points plotted.
|
void |
setColorSeparators(java.awt.Color[] color,
java.lang.Object[] value,
int order)
This method is used for defining the color of the chart based on separator value.
|
void |
setConnectLinesInOriginalOrder(boolean origOrder)
Specifies whether the connecting line between datapoints is drawn in the same order in the
dataset.
|
void |
setConnectLinesVisible(boolean b)
Enables/Disables the drawing of lines connecting adjacent data points in a chart.
|
void |
setDataBorderColor(java.awt.Color c)
Sets border color of the data for some chart types.
|
void |
setDataBorderThickness(int i)
Sets border thickness of the data for some chart types.
|
void |
setDataLabelInfo(IDataLabelInfo dataLabelInfo)
Set the display text for primary data top label
|
void |
setDataLineForNull(boolean b,
boolean drawDottedLine)
This function enables/disables drawing data lines for missing or null data points.
|
void |
setDataLineThickness(int[] lineThickness)
Sets the line thickness for all the data lines displayed in the chart.
|
void |
setDisableJava2DForStraightText(boolean state)
If the new state is true, the straight text (0, 90, 180...
|
void |
setDottedLineForNull(boolean b)
This function enables/disables drawing dotted lines for missing or null data points.
|
void |
setDrawNullColumn(boolean b)
Returns whether or not to show null data column in chart.
|
void |
setEndToEnd(boolean state)
Enables/Disables drawing of a chart from end to end, skip all the gaps.
|
void |
setGridStep(int colIndex,
int size)
Deprecated.
Please use getTickerStep(int colIndex, int size) The step size of ticker should
equal step size of grid, except after label filtering for date-time chart
|
void |
setHidden(int colIndex,
boolean[] b)
This function sets the hidden status for the column values in the legend.
|
void |
setJava2DRotateTextEnabled(boolean state)
If the new state is true, rotated text would be rendered through Java2D.
|
void |
setLabelFormat(int colIndex,
IFormat format)
This function sets the label format for the given column index.
|
void |
setLabelOnNegativeSide(boolean state)
If the new state is true, this method forces every label to display on the negative side of
the axis, no matter the data value is positive or not.
|
void |
setLabelOnPositiveSide(boolean state)
If the new state is true, this method forces every label to display on the positive side of
the axis, no matter the data value is positive or not.
|
void |
setLabelStep(int colIndex,
int size)
This function sets the label step size for the given column.
|
void |
setLabelStep(int colIndex,
int size,
int unit,
boolean isAscending,
java.util.Date startingDate)
This function sets the label step size for the given column.
|
void |
setLimitAtAxisScale(boolean state)
This function sets the data limit at axis scale If sets, no data can go over axis max scale
or go below axis min scale The default value is FALSE
|
void |
setLineStyles(int[] style)
Sets the line styles for the connect data lines drawn in the chart.
|
void |
setLineThickness(int thickness)
Deprecated.
Please use setDataLineThickness(int[] thickness) use @link
ISecondaryChart#setDataLineThickness for secondary chart
|
void |
setLineXOffset(int offset)
Shift the points drawn along the X axis away from the origin.
|
void |
setMaxBarWidthRatioToPlotArea(float x)
Sets the max bar width to plot area ratio for bar/column charts.
|
void |
setMaxDisplayCharactersForText(int maxCh)
Sets the number of display characters for text.
|
void |
setMaxLabelAndTickerCount(int colIndex,
int ct)
This function sets the max number of display label and ticker for the given axis.
|
void |
setMaxYCutOffPointForScatter(java.lang.Double value)
This method set the max Y cut-off point for scatter chart
|
void |
setNullColumnName(java.lang.String str)
Set the display name for null data column in chart.
|
void |
setNullDataAsZero(boolean b)
This function enables/disables treating null data as zero values.
|
void |
setOrder(int seriesType,
java.lang.String[] data)
Sets the order of the data points for the series, category, or sumby column.
|
void |
setPointBorderColorBlack(boolean b)
Set the color of data point border to black, otherwises, darker color of the symbol color.
|
void |
setPointBorderVisible(boolean b)
Enables/Disables the display of data point border in the chart.
|
void |
setPointShapes(int[] shapes)
Sets the point shapes for drawing the data points in the chart.
|
void |
setPointSizes(int[] size)
Sets the point size for all the data points displayed in the chart.
|
void |
setPointsShapes(int[] shapes) |
void |
setPointsUniformForLine(boolean b)
If new state is true, the points are drawn uniformly.
|
void |
setPointsVisible(boolean b)
Enables/Disables the display of data points in the chart.
|
void |
setPositionFromOrigin(float chartMidPoint)
Sets the chart position to be fixed from the origin of the canvas
|
void |
setSaveColorsForCategories(boolean b)
Sets whether colors of chart data points will be assigned to category names.
|
void |
setSecondaryDataLabelInfo(IDataLabelInfo dataLabelInfo)
Set the display text for secondary data top label
|
void |
setShowNullInScatter(boolean b)
This function enables/disables showing null data in scatter chart.
|
void |
setShowShadowOnLine(boolean b)
Enables/Disables the drawing shadow on lines in a chart.
|
void |
setShowShadowOnPoint(boolean b)
Enables/Disables the drawing shadow on datapoints in a chart.
|
void |
setSingleColorForCategories(boolean b)
Sets whether a single color can be assigned to all categories.
|
void |
setSortByOriginalOrder(int seriesType)
Sets the sort order of the series, category, or sumby column to original data source order.
|
void |
setSortOrder(int seriesType,
int type)
Sets the sort order of the series, category, or sumby column to original order, customize
order, ascending order or descending order.
|
void |
setSortSeriesByValue(boolean state)
Sorts the series in the order of series sum such that the lowest sum would appear in front.
|
void |
setStackLabelAlignment(int align)
Sets alignment position for the stack section labels alignment position:
QbChart.TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, QbChart.TOP_ALIGNMENT_INSIDE,
QbChart.BOTTOM_ALIGNMENT_INSIDE
|
void |
setStackSectionLabelVisible(boolean state)
Specifies whether the individual section labels in a StackBar, StackColumn or StackArea Chart
is visible.
|
void |
setStackSectionTotalLabelVisible(boolean state)
Specifies whether the total label in a StackBar, StackColumn or StackArea Chart is visible.
|
void |
setTickerStep(int colIndex,
int size)
This function is used to set the ticker step size for a particular column.
|
void |
setTopLabelAlignment(int align)
Sets alignment position for the top labels alignment position: QbChart.TOP_ALIGNMENT,
CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, QbChart.TOP_ALIGNMENT_INSIDE,
QbChart.BOTTOM_ALIGNMENT_INSIDE
|
void |
setTopLabelColorOnNegativeSide(java.awt.Color c)
Sets top label color for negative side
|
void |
setTopNValue(boolean enable,
int topVal)
set to display up to number of Top N data points in a chart This feature only works with
chart with category only and ascending order has to be applied to the chart
|
void |
setTranslucent(boolean b)
If new state is true, the overlay parts of the chart are drawn in a partially transparent
method.
|
void |
setTranslucentValue(float val)
This method sets the translucent value of the chart The default value is 0.5.
|
void |
setUniqueBarColorForBarChart(boolean b)
Sets whether a different color can be assigned to each bar in bar chart.
|
void |
setUniqueColumnColorForColumnChart(boolean b)
Sets whether a different color can be assigned to each column in column chart.
|
void |
setValueSortOrder(int type)
Sorts the value column in Original, Ascending or Descending order.
|
void |
setXAxisDrawnAtTop(boolean shift)
Specifies whether the X-Axis is drawn at the top of the chart.
|
void |
setZeroAsNullData(boolean b)
This function enables/disables treating zero values as null data.
|
void |
showSeriesInTopLabel(boolean state)
If the new state is true, this method would display series in top label.
|
static final int YEAR
static final int MONTH
static final int WEEK
static final int DAY
static final int HOUR
static final int MINUTE
static final int SECOND
static final int TICKER
java.lang.String[] getOrder(int seriesType)
Associated QbChart properties: <b> SERIES_ORDER CATEGORY_ORDER SUMBY_ORDER </b>
seriesType
- The series type needed. Options are:
QbChart.CATEGORY QbChart.SERIES QbChart.SUMBY
void setOrder(int seriesType, java.lang.String[] data)
seriesType
- The series needed.data
- The data points as a string array.getOrder(int)
void reverseOrder(int seriesType)
seriesType
- The series type needed. Options are:
QbChart.CATEGORY QbChart.SERIES QbChart.SUMBY
void setSortOrder(int seriesType, int type)
seriesType
- QbChart.CATEGORY, QbChart.SERIES, or QbChart.SUMBYtype
- QbChart.ASCENDING, QbChart.DESCENDING, QbChart.ORIGINAL_DATA_ORDER or
QbChart.CUSTOMIZE_DATA_ORDERint getSortOrder(int seriesType)
seriesType
- QbChart.CATEGORY, QbChart.SERIES, or QbChart.SUMBYvoid setSortByOriginalOrder(int seriesType)
seriesType
- QbChart.CATEGORY, QbChart.SERIES, or QbChart.SUMBYvoid setValueSortOrder(int type)
Associated QbChart property: VALUE_ORDER
type
- QbChart.ORIGINAL_DATA_ORDER, QbChart.ASCENDING or QbChart.DESCENDINGint getValueSortOrder()
Associated QbChart property: VALUE_ORDER
void setSortSeriesByValue(boolean state)
void setTopNValue(boolean enable, int topVal) throws java.lang.Exception
enable
- the state of Top N value featuretopVal
- number of display numberjava.lang.Exception
void setBottomNValue(boolean enable, int bottomVal) throws java.lang.Exception
enable
- the state of Bottom N value featurebottomVal
- number of display numberjava.lang.Exception
int getTopNValue()
int getBottomNValue()
boolean isUniqueColumnColorForColumnChart()
void setUniqueColumnColorForColumnChart(boolean b)
void setUniqueBarColorForBarChart(boolean b)
java.awt.Color[] getColors()
quadbase.chart.QbPattern
type.setColors(java.awt.Color[])
boolean isSingleColorForCategories()
void setSingleColorForCategories(boolean b)
boolean isSaveColorsForCategories()
void setSaveColorsForCategories(boolean b)
void setColors(java.awt.Color[] color)
quadbase.chart.QbPattern
Associated QbChart property: DATACOLOR
color
- The array containing the color scheme for the points.
The size of the array depends on the chart type: For a plain column chart with no series or category, it is N, where N is the number of points in the category column. For a stack column chart with no series, it is M, where M is the number of points in the sum-by column. For a stack column chart with series, it is M x P, where P is the number of points in the series column.
void setColors(java.awt.Color[] color, java.awt.Color rootColor)
Associated QbChart property: DATACOLOR
color
- The array containing the color scheme for the points.
The size of the array depends on the chart type: For a plain column chart with no series or category, it is N, where N is the number of points in the category column. For a stack column chart with no series, it is M, where M is the number of points in the sum-by column. For a stack column chart with series, it is M x P, where P is the number of points in the series column.
rootColor
- The color scheme for the root pointvoid setColorSeparators(java.awt.Color[] color, java.lang.Object[] value, int order)
color
- The array containing the color scheme for separator pointsvalue
- The array of separator object which can be java.lang.Number, String Boolean or
java.util.Dateorder
- Set the sort order of the column : QbChart.ASCENDING or QbChart.DESCENDINGILabel gethLabel()
ILabel
int getTopLabelAlignment()
void setTopLabelAlignment(int align)
align
- alignment positionjava.awt.Color getTopLabelColorOnNegativeSide()
void setTopLabelColorOnNegativeSide(java.awt.Color c)
int getStackLabelAlignment()
void setStackLabelAlignment(int align)
align
- alignment positionILabel gethSecondaryLabel()
ILabel
void setStackSectionLabelVisible(boolean state)
boolean isStackSectionLabelVisible()
void setStackSectionTotalLabelVisible(boolean state)
boolean isStackSectionTotalLabelVisible()
void setDataLabelInfo(IDataLabelInfo dataLabelInfo)
dataLabelInfo
- The display label for primary axis dataIDataLabelInfo
void setSecondaryDataLabelInfo(IDataLabelInfo dataLabelInfo)
dataLabelInfo
- The display label for secondary axis dataIDataLabelInfo
boolean isLabelOnPositiveSide()
void setLabelOnPositiveSide(boolean state)
state
- The new stateboolean isLabelOnNegativeSide()
void setLabelOnNegativeSide(boolean state)
state
- The new stateboolean isShowSeriesInTopLabel()
void showSeriesInTopLabel(boolean state)
state
- The new stateboolean isJava2DRotateTextEnabled()
void setJava2DRotateTextEnabled(boolean state)
state
- The new stateboolean isDisableJava2DForStraightText()
void setDisableJava2DForStraightText(boolean state)
state
- The new stateint getMaxDisplayCharactersForText()
void setMaxDisplayCharactersForText(int maxCh)
maxCh
- the max display charactersvoid replace(java.lang.String originalText, java.lang.String replacedText)
originalText
- The original textreplacedText
- The replaced textjava.lang.String getReplacedText(java.lang.String originalText)
originalText
- The original textjava.util.Enumeration getOriginalTextList()
java.util.Enumeration getReplacedTextList()
IHint gethHint()
Associated QbChart properties: <b> SHOW_DATAHINT DATAHINT_BACKGROUND DATAHINT_FONTCOLOR DATAHINT_FONT </b>
IHint
float getBarGapToWidthRatio()
setBarGapToWidthRatio(float)
void setBarGapToWidthRatio(float x)
Associated QbChart property: BARWIDTH_RATIO
x
- The bar width to gap rationfloat getMaxBarWidthRatioToPlotArea()
setMaxBarWidthRatioToPlotArea(float)
void setMaxBarWidthRatioToPlotArea(float x)
x
- The max bar width to plot area ratioboolean isEndToEnd()
void setEndToEnd(boolean state)
state
- Set to true/false to enable/disable drawing of a chart from end to endboolean isBorderVisible()
setBorderVisible(boolean)
void setBorderVisible(boolean b)
Associated QbChart property: DRAW_DATABORDER
b
- Set to true/false to enable/disable drawing of a border around the data points.boolean isBlackBorderVisibleForWhiteArea()
setBorderVisible(boolean)
void setBlackBorderVisibleForWhiteArea(boolean b)
Associated QbChart property: DRAW_DATABORDER
b
- Set to true/false to enable/disable drawing of a border around the data points.java.awt.Color getDataBorderColor()
setDataBorderColor(java.awt.Color)
void setDataBorderColor(java.awt.Color c)
c
- border colorint getDataBorderThickness()
setDataBorderThickness(int)
void setDataBorderThickness(int i)
c
- border thicknessboolean areConnectLinesVisible()
setConnectLinesVisible(boolean)
void setConnectLinesVisible(boolean b)
Associated QbChart property: DRAW_LINE
b
- Set to true/false to enable/disable drawing of connecting lines.boolean isShowShadowOnLine()
setShowShadowOnLine(boolean)
void setShowShadowOnLine(boolean b)
b
- Set to true/false to enable/disable drawing shadow on lines.boolean isShowShadowOnPoint()
void setShowShadowOnPoint(boolean b)
b
- Set to true/false to enable/disable drawing shadow on datapoints.@Deprecated int getLineThickness()
@Deprecated void setLineThickness(int thickness)
thickness
- The thickness value for drawing data lines.int getLineXOffset()
void setLineXOffset(int offset)
Associated QbChart property: X_SHIFT
offset
- The value, in pixels, to shift the points along the X axis.boolean isDottedLineForNull()
void setDottedLineForNull(boolean b)
Associated QbChart property: SHOW_NULLDATALINE
b
- Set to true if dotted lines are to be displayed for missing data values, false
otherwise.setConnectLinesVisible(boolean)
void setDataLineForNull(boolean b, boolean drawDottedLine)
b
- Set to true if data lines are to be displayed for missing data valuesdrawDottedLine
- Set to true if want to use dotted line style to display null datasetConnectLinesVisible(boolean)
boolean isZeroAsNullData()
void setZeroAsNullData(boolean b)
b
- Set to true if treated zero values as null data, false otherwise.boolean isNullDataAsZero()
void setNullDataAsZero(boolean b)
b
- Set to true if treating null data as zero values, false otherwise.boolean isShowNullInScatter()
void setShowNullInScatter(boolean b)
b
- Set to true if showing null data in scatter, false otherwise.boolean isDrawNullColumn()
void setDrawNullColumn(boolean b)
java.lang.String getNullColumnName()
void setNullColumnName(java.lang.String str)
str
- the display name of null data column in chart.boolean arePointsVisible()
void setPointsVisible(boolean b)
Associated QbChart property: DRAW_POINT
b
- Set the display status for the data points in the chart.boolean arePointsUniformForLine()
void setPointsUniformForLine(boolean b)
b
- Set the data points to draw uniformly.boolean isPointBorderVisible()
void setPointBorderVisible(boolean b)
b
- Set the display status for the data point border in the chart.boolean isPointBorderColorBlack()
void setPointBorderColorBlack(boolean b)
b
- Set the color for the data point border to black.boolean isAreaVisible()
void setAreaVisible(boolean b)
b
- Set the display status for the data area in the chart.int[] getPointShapes()
setPointShapes(int[])
,
setColors(java.awt.Color[])
void setPointShapes(int[] shapes)
Associated QbChart property: DATASHAPE
shapes
- The array containing the shapes for all the points. The number of points in this
array should match the number used in the setColors() function.
Available shape values are: QbChart.NOSYMBOL QbChart.CROSS QbChart.CIRCLE QbChart.SQUARE QbChart.TRIANGLE QbChart.PLUS QbChart.DASH QbChart.STAR QbChart.DIAMOND
setColors(java.awt.Color[])
int[] getPointsShapes()
void setPointsShapes(int[] shapes)
int[] getPointSizes()
getColors()
,
getPointShapes()
void setPointSizes(int[] size)
Associated QbChart property: DATASIZE
size
- The array of ints containing all the data point sizes.setColors(java.awt.Color[])
,
setPointShapes(int[])
int[] getLineStyles()
getColors()
,
getPointShapes()
,
getPointSizes()
void setLineStyles(int[] style)
Associated QbChart property: LINESTYLE
style
- The array containing all the line styles.
A line style number, z, satisfies the equation: z = 256*fill + empty where fill is the number of fill pixels (solid part of dashed line) and empty is the number of blank pixels (empty part of dashed line) with fill < 256 and empty < 256. By setting well-defined numbers for z, users can create different types of connect lines.
setColors(java.awt.Color[])
,
setPointShapes(int[])
,
setPointSizes(int[])
int[] getDataLineThickness()
void setDataLineThickness(int[] lineThickness)
lineThickness
- The array of ints containing all the data line thickness.@Deprecated int getGridStep(int colIndex)
<b> GRID_STEPSIZE </b>
colIndex
- The column index for which the grid step size is desired.setGridStep(int, int)
@Deprecated void setGridStep(int colIndex, int size)
colIndex
- The column index for which the grid step size is set.size
- The step size.getGridStep(int)
int getTickerStep(int colIndex)
<b> TICKER_STEPSIZE </b>
colIndex
- The column index for which the ticker step size is desired.setTickerStep(int, int)
void setTickerStep(int colIndex, int size)
colIndex
- The column index for which the ticker step size is set.size
- The step size.getTickerStep(int)
IFormat getLabelFormat(int colIndex)
<b> DATA_LABEL_FORMAT </b>
colIndex
- The column index for which the label format is desired.IFormat
void setLabelFormat(int colIndex, IFormat format)
colIndex
- The column index.format
- The object of type IFormat containing the label format.IFormat
int getLabelStep(int colIndex)
<b> DATA_LABEL_STEPSIZE </b>
colIndex
- The column index for which the label step size is desired.void setLabelStep(int colIndex, int size)
colIndex
- The column index.size
- The label step size desired.IAxis.getLabelStep()
int getMaxLabelAndTickerCount(int colIndex)
colIndex
- The column index for which the max count of label and ticker is desired.void setMaxLabelAndTickerCount(int colIndex, int ct)
colIndex
- The column index.ct
- The max count for number of the label and ticker desired.IAxis.getMaxLabelAndTickerCount()
void setLabelStep(int colIndex, int size, int unit, boolean isAscending, java.util.Date startingDate)
colIndex
- The column index.size
- The label step size desired.unit
- The label interval unit: IDataPointSet.TICKER IDataPointSet.SECOND
IDataPointSet.MINUTE IDataPointSet.HOUR IDataPointSet.DAY IDataPointSet.MONTH
IDataPointSet.YEARisAscending
- Set data ordering ( order sorting is required for time-filtering)startingDate
- Set the date to start filtering If startingDate == null, it will find the best fit
date to do filteringIAxis.getLabelStep()
int getLabelUnit(int colIndex)
setLabelStep(.....)
to set the label unit. No API for
setlabelUnit
is implemented such that the unit can be consistent with the input
data type of the columncolIndex
- the columnIndex of the columnboolean[] areHidden(int colIndex)
<b> HIDE_LEGENDITEMS </b>
colIndex
- The column index for which the status is desired.setHidden(int, boolean[])
void setHidden(int colIndex, boolean[] b)
colIndex
- The column index.b
- A boolean array containing the hide status.areHidden(int)
void setLimitAtAxisScale(boolean state)
state
- A boolean of set limit at axis scaleboolean isLimitAtAxisScale()
boolean isTranslucent()
void setTranslucent(boolean b)
state
- The new statefloat getTranslucentValue()
void setTranslucentValue(float val)
state
- The new statevoid setPositionFromOrigin(float chartMidPoint)
chartMidPoint
- The distance of the chart from the origin of the canvas represented as a
percentage of the widthvoid setCandleStickWidth(float wickerWidth)
float getCandleStickWidth()
void setCandleStickColors(java.awt.Color upTickColor, java.awt.Color downTickColor)
java.awt.Color getCandleStickUpColor()
java.awt.Color getCandleStickDownColor()
void setXAxisDrawnAtTop(boolean shift)
boolean isXAxisDrawnAtTop()
void setConnectLinesInOriginalOrder(boolean origOrder)
boolean isConnectLinesInOriginalOrder()
void setMaxYCutOffPointForScatter(java.lang.Double value)
value
- of the max Y cut-off point for scatter chartjava.lang.Double getMaxYCutOffPointForScatter()