public interface ILegend extends IPlot
A handle to a legend object for the secondary axis can be obtained by calling the gethLegend method defined in the ISecondaryChart interface.
ISecondaryChart
Modifier and Type | Method and Description |
---|---|
boolean[] |
areItemsHidden(int colIndex)
Returns the boolean state of the items in the legend.
|
boolean |
areLabelsReversed()
Returns whether or not the labels in the legend are displayed in reverse order.
|
boolean |
areSymbolsDrawn()
Returns whether or not data point symbols are drawn in the legend.
|
IText |
gethText()
This function is used to get a handle to the IText object for modifying the font-related
properties of the legend.
|
int |
getLayout()
Returns the layout of the primary or secondary legend.
|
int |
getNumberOfFixedColumn()
Returns the number of columns are displayed in legend when fixed-column layout is in used
|
int |
getSymbolSizeRatio()
return the symbol size ratio default value is 100%
|
boolean |
isDrawSymbolWithLine()
Returns whether or not a line is drawn behind the symbol in the legend.
|
boolean |
isVisible()
Returns the display status of the primary or secondary legend in the chart.
|
void |
setDrawSymbols(boolean drawSym)
Sets the state of the data point symbols in the legend.
|
void |
setDrawSymbolWithLine(boolean drawSymWithLine)
Sets the state of drawing a line behind the data point symbols in the legend.
|
void |
setItemsHidden(int colIndex,
boolean[] b)
Sets the boolean state of the items in the legend.
|
void |
setLabelsReversed(boolean b)
Enables/Disables the display of legend labels in reverse order.
|
void |
setLayout(int x)
Sets the layout of the primary/secondary legend to horizontal, vertical, square or fixed
column.
|
void |
setNumberOfFixedColumn(int val)
Sets the number of columns are displayed in legend when fixed-column layout is in used
|
void |
setSymbolSizeRatio(int ratio)
set the symbol size ratio default value is 100%
|
void |
setVisible(boolean b)
Sets the display status of the primary or secondary legend in the chart.
|
getAppearance, getBackgroundColor, getBorderColor, getBorderThickness, getCutCornerWidth, getDepth, getDialBGImageRelativeURL, getDialBGImageURL, getDialBGRatio, getDialBGState, getDialFGImageRelativeURL, getDialFGImageURL, getDialFGRatio, getDialFGState, getPosition, getRelativeHeight, getRelativeWidth, isBackgroundVisible, isBorderVisible, setAppearance, setBackgroundColor, setBackgroundVisible, setBorderColor, setBorderThickness, setBorderVisible, setCutCornerWidth, setDepth, setDialBGImage, setDialBGImage, setDialBGRatio, setDialBGState, setDialFGImage, setDialFGImage, setDialFGRatio, setDialFGState, setPosition, setRelativeHeight, setRelativeWidth
set3DShadingEnabled, setGradientCyclic, setGradientDesColor, setGradientEnabled, setGradientEndX, setGradientEndY, setGradientShade, setGradientStartX, setGradientStartY
getGradientDesColor, getGradientEndX, getGradientEndY, getGradientShade, getGradientStartX, getGradientStartY, is3DShadingEnabled, isGradientCyclic, isGradientEnabled
IText gethText()
Associated QbChart properties:
LEGEND_FONT SLEGEND_FONT LEGEND_FONTCOLOR SLEGEND_FONTCOLOR LEGEND_FONTANGLE SLEGEND_FONTANGLE
boolean isVisible()
Associated QbChart property:
DRAW_LEGEND DRAW_SLEGEND
void setVisible(boolean b)
b
- The display status for the legend.int getLayout()
Associated QbChart property:
LEGEND_LAYOUT SLEGEND_LAYOUT
void setLayout(int x)
x
- QbChart.VERTICAL, QbChart.HORIZONTAL, QbChart.SQUARE_LEGEND or
QbChart.FIXED_COLUMNint getNumberOfFixedColumn()
void setNumberOfFixedColumn(int val)
val
- number of columnboolean areLabelsReversed()
Associated QbChart property:
LEGEND_REVERSELABEL SLEGEND_REVERSELABEL
void setLabelsReversed(boolean b)
b
- Set to true to display labels in reverse order, false otherwise.boolean[] areItemsHidden(int colIndex)
Associated QbChart property: HIDE_LEGENDITEMS
colIndex
- The column number of the category or secondary value column used in the chart.void setItemsHidden(int colIndex, boolean[] b)
colIndex
- The column number of the category or secondary value column used in the chart.b
- The array of booleans containing the display status of each element in the legend.ILegend#areItemsHidded
void setDrawSymbols(boolean drawSym)
drawSym
- Set to true if symbols should be drawn in the legend.boolean areSymbolsDrawn()
void setDrawSymbolWithLine(boolean drawSymWithLine)
drawSymWithLine
- Set to true if line should be drawn behind the symbols in the legend.boolean isDrawSymbolWithLine()
void setSymbolSizeRatio(int ratio)
ratio
- int getSymbolSizeRatio()