|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Properties for chart data points can be directly changed by calling methods on this interface. A handle to an object that implements this interface can be obtained by calling the gethDataPoints method defined in QbChart.
| Field Summary | |
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 |
| Method Summary | |
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. |
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. |
java.lang.Double |
getMaxYCutOffPointForScatter()
This method return the value of the max Y cut-off point for scatter 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. |
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 |
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 |
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 |
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 |
isPointBorderVisible()
Returns the display status of the data point border. |
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 |
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 |
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 |
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 |
setMaxYCutOffPointForScatter(java.lang.Double value)
This method set the max Y cut-off point for scatter 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 |
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 |
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 |
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 |
setSortOrder(int seriesType,
int type)
Sets the sort order of the series, category, or sumby column to ascending or descending. |
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 |
setTranslucent(boolean b)
If new state is true, the overlay parts of the chart are drawn in a partially transparent method. |
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 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. |
| Field Detail |
public static final int YEAR
public static final int MONTH
public static final int WEEK
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int TICKER
| Method Detail |
public java.lang.String[] getOrder(int seriesType)
Associated QbChart properties: SERIES_ORDER CATEGORY_ORDER SUMBY_ORDER
seriesType - The series type needed. Options are: QbChart.CATEGORY QbChart.SERIES QbChart.SUMBY
public void setOrder(int seriesType,
java.lang.String[] data)
seriesType - The series needed.data - The data points as a string array.getOrder(int)public void reverseOrder(int seriesType)
seriesType - The series type needed. Options are: QbChart.CATEGORY QbChart.SERIES QbChart.SUMBY
public void setSortOrder(int seriesType,
int type)
seriesType - QbChart.CATEGORY, QbChart.SERIES, or QbChart.SUMBYtype - QbChart.ASCENDING or QbChart.DESCENDINGpublic void setValueSortOrder(int type)
Associated QbChart property: VALUE_ORDER
type - QbChart.ASCENDING or QbChart.DESCENDINGpublic void setSortSeriesByValue(boolean state)
public boolean isUniqueColumnColorForColumnChart()
public void setUniqueColumnColorForColumnChart(boolean b)
public java.awt.Color[] getColors()
quadbase.chart.QbPattern
type.setColors(java.awt.Color[])public 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.
public 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 point
public void 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.DESCENDINGpublic ILabel gethLabel()
ILabelpublic int getTopLabelAlignment()
public void setTopLabelAlignment(int align)
align - alignment positionpublic java.awt.Color getTopLabelColorOnNegativeSide()
public void setTopLabelColorOnNegativeSide(java.awt.Color c)
public int getStackLabelAlignment()
public void setStackLabelAlignment(int align)
align - alignment positionpublic ILabel gethSecondaryLabel()
ILabelpublic void setStackSectionLabelVisible(boolean state)
public boolean isStackSectionLabelVisible()
public void setStackSectionTotalLabelVisible(boolean state)
public boolean isStackSectionTotalLabelVisible()
public void setDataLabelInfo(IDataLabelInfo dataLabelInfo)
dataLabelInfo - The display label for primary axis dataIDataLabelInfopublic void setSecondaryDataLabelInfo(IDataLabelInfo dataLabelInfo)
dataLabelInfo - The display label for secondary axis dataIDataLabelInfopublic boolean isLabelOnPositiveSide()
public void setLabelOnPositiveSide(boolean state)
state - The new statepublic boolean isLabelOnNegativeSide()
public void setLabelOnNegativeSide(boolean state)
state - The new statepublic boolean isShowSeriesInTopLabel()
public void showSeriesInTopLabel(boolean state)
state - The new statepublic boolean isJava2DRotateTextEnabled()
public void setJava2DRotateTextEnabled(boolean state)
state - The new statepublic boolean isDisableJava2DForStraightText()
public void setDisableJava2DForStraightText(boolean state)
state - The new statepublic int getMaxDisplayCharactersForText()
public void setMaxDisplayCharactersForText(int maxCh)
maxCh - the max display characters
public void replace(java.lang.String originalText,
java.lang.String replacedText)
originalText - The original textreplacedText - The replaced textpublic java.lang.String getReplacedText(java.lang.String originalText)
originalText - The original textpublic java.util.Enumeration getOriginalTextList()
public java.util.Enumeration getReplacedTextList()
public IHint gethHint()
Associated QbChart properties: SHOW_DATAHINT DATAHINT_BACKGROUND DATAHINT_FONTCOLOR DATAHINT_FONT
IHintpublic float getBarGapToWidthRatio()
setBarGapToWidthRatio(float)public void setBarGapToWidthRatio(float x)
Associated QbChart property: BARWIDTH_RATIO
x - The bar width to gap rationpublic float getMaxBarWidthRatioToPlotArea()
setMaxBarWidthRatioToPlotArea(float)public void setMaxBarWidthRatioToPlotArea(float x)
x - The max bar width to plot area ratiopublic boolean isEndToEnd()
public void setEndToEnd(boolean state)
state - Set to true/false to enable/disable drawing of a chart from end to endpublic boolean isBorderVisible()
setBorderVisible(boolean)public 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.public boolean isBlackBorderVisibleForWhiteArea()
setBorderVisible(boolean)public 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.public java.awt.Color getDataBorderColor()
setDataBorderColor(java.awt.Color)public void setDataBorderColor(java.awt.Color c)
c - border colorpublic int getDataBorderThickness()
setDataBorderThickness(int)public void setDataBorderThickness(int i)
c - border thicknesspublic boolean areConnectLinesVisible()
setConnectLinesVisible(boolean)public void setConnectLinesVisible(boolean b)
Associated QbChart property: DRAW_LINE
b - Set to true/false to enable/disable drawing of connecting lines.public boolean isShowShadowOnLine()
setShowShadowOnLine(boolean)public void setShowShadowOnLine(boolean b)
b - Set to true/false to enable/disable drawing shadow on lines.public boolean isShowShadowOnPoint()
public void setShowShadowOnPoint(boolean b)
b - Set to true/false to enable/disable drawing shadow on datapoints.public int getLineThickness()
public void setLineThickness(int thickness)
thickness - The thickness value for drawing data lines.public int getLineXOffset()
public void setLineXOffset(int offset)
Associated QbChart property: X_SHIFT
offset - The value, in pixels, to shift the points along the X axis.public boolean isDottedLineForNull()
public 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)
public 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)public boolean isZeroAsNullData()
public void setZeroAsNullData(boolean b)
b - Set to true if treated zero values as null data, false otherwise.public boolean isNullDataAsZero()
public void setNullDataAsZero(boolean b)
b - Set to true if treating null data as zero values, false otherwise.public boolean isShowNullInScatter()
public void setShowNullInScatter(boolean b)
b - Set to true if showing null data in scatter, false otherwise.public boolean arePointsVisible()
public void setPointsVisible(boolean b)
Associated QbChart property: DRAW_POINT
b - Set the display status for the data points in the chart.public boolean arePointsUniformForLine()
public void setPointsUniformForLine(boolean b)
b - Set the data points to draw uniformly.public boolean isPointBorderVisible()
public void setPointBorderVisible(boolean b)
b - Set the display status for the data point border in the chart.public boolean isAreaVisible()
public void setAreaVisible(boolean b)
b - Set the display status for the data area in the chart.public int[] getPointShapes()
setPointShapes(int[]),
setColors(java.awt.Color[])public 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
setColors(java.awt.Color[])public int[] getPointSizes()
getColors(),
getPointShapes()public 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[])public int[] getLineStyles()
getColors(),
getPointShapes(),
getPointSizes()public 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[])public int[] getDataLineThickness()
public void setDataLineThickness(int[] lineThickness)
lineThickness - The array of ints containing all the data line thickness.public int getGridStep(int colIndex)
GRID_STEPSIZE
colIndex - The column index for which the grid step size is desired.setGridStep(int, int)
public void setGridStep(int colIndex,
int size)
colIndex - The column index for which the grid step size is set.size - The step size.getGridStep(int)public int getTickerStep(int colIndex)
TICKER_STEPSIZE
colIndex - The column index for which the ticker step size is desired.setTickerStep(int, int)
public void setTickerStep(int colIndex,
int size)
colIndex - The column index for which the ticker step size is set.size - The step size.getTickerStep(int)public IFormat getLabelFormat(int colIndex)
DATA_LABEL_FORMAT
colIndex - The column index for which the label format is desired.IFormat
public void setLabelFormat(int colIndex,
IFormat format)
colIndex - The column index.format - The object of type IFormat containing the label format.IFormatpublic int getLabelStep(int colIndex)
DATA_LABEL_STEPSIZE
colIndex - The column index for which the label step size is desired.
public void setLabelStep(int colIndex,
int size)
colIndex - The column index.size - The label step size desired.IAxis.getLabelStep()
public 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()public 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 columnpublic boolean[] areHidden(int colIndex)
HIDE_LEGENDITEMS
colIndex - The column index for which the status is desired.setHidden(int, boolean[])
public void setHidden(int colIndex,
boolean[] b)
colIndex - The column index.b - A boolean array containing the hide status.areHidden(int)public void setLimitAtAxisScale(boolean state)
state - A boolean of set limit at axis scalepublic boolean isLimitAtAxisScale()
public boolean isTranslucent()
public void setTranslucent(boolean b)
state - The new statepublic void setPositionFromOrigin(float chartMidPoint)
chartMidPoint - The distance of the chart from the origin of the canvas represented as a percentage of the widthpublic void setCandleStickWidth(float wickerWidth)
public float getCandleStickWidth()
public void setCandleStickColors(java.awt.Color upTickColor,
java.awt.Color downTickColor)
public java.awt.Color getCandleStickUpColor()
public java.awt.Color getCandleStickDownColor()
public void setXAxisDrawnAtTop(boolean shift)
public boolean isXAxisDrawnAtTop()
public void setConnectLinesInOriginalOrder(boolean origOrder)
public boolean isConnectLinesInOriginalOrder()
public void setMaxYCutOffPointForScatter(java.lang.Double value)
value - of the max Y cut-off point for scatter chartpublic java.lang.Double getMaxYCutOffPointForScatter()
|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||