|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface defines methods to modify properties associated with the plot area for the main chart as well as the legend.
A handle to an object that implements this interface can be obtained in two ways:
1. By calling the gethChartPlot method in QbChart. This returns a handle to the plot area containing the main chart.
2. By obtaining a handle to the ILegend interface, which extends IPlot.
ILegend| Method Summary | |
int |
getAppearance()
Returns the background appearance for the chart/legend plot area. |
java.awt.Color |
getBackgroundColor()
Returns the color of the chart/legend plot area background. |
java.awt.Color |
getBorderColor()
Returns the color of the chart/legend plot area border. |
int |
getBorderThickness()
Returns the border thickness for the chart plot area. |
int |
getDepth()
Returns the data plotting area depth. |
Position |
getPosition()
Gets the x,y position of the chart/legend plot area relative to the main chart canvas. |
float |
getRelativeHeight()
Returns the height of the plot area relative to the main chart canvas. |
float |
getRelativeWidth()
Returns the width of the plot area relative to the main chart canvas. |
boolean |
isBackgroundVisible()
Returns whether or not the background for the chart/legend plot area is visible. |
boolean |
isBorderVisible()
Returns whether or not a border is drawn around the chart/legend plot area. |
void |
setAppearance(int x)
Sets the background appearance for the chart/legend plot area. |
void |
setBackgroundColor(java.awt.Color c)
Sets the color of the chart/legend plot area background. |
void |
setBackgroundVisible(boolean b)
Enables/Disables drawing of a background for the chart/legend plot area. |
void |
setBorderColor(java.awt.Color c)
Sets the border color for the chart/legend plot area. |
void |
setBorderThickness(int x)
Sets the border thickness for the chart plot area. |
void |
setBorderVisible(boolean b)
Enable/Disable drawing of the border for chart/legend plot area. |
void |
setDepth(int x)
Sets the data plotting area depth. |
void |
setPosition(Position p)
Sets the x,y positon of the chart/legend plot area relative to the main chart window. |
void |
setRelativeHeight(float height)
Sets the height of the plot area relative to the main chart canvas. |
void |
setRelativeWidth(float width)
Sets the width of the plot area relative to the main chart canvas. |
| Method Detail |
public float getRelativeWidth()
Associated QbChart property: PLOT_WIDTH
public void setRelativeWidth(float width)
width - The relative width of the chart plot area. Should be
between 0 and 1.public float getRelativeHeight()
Associated QbChart property: PLOT_HEIGHT
public void setRelativeHeight(float height)
height - The relative height of the chart plot area. Should be
between 0 and 1.public Position getPosition()
Associated QbChart property:
PLOT_XPOS PLOT_YPOS LEGEND_XPOS LEGEND_YPOS
Positionpublic void setPosition(Position p)
p - The Position object containing the relative positon.Positionpublic boolean isBorderVisible()
Associated QbChart property:
DRAW_PLOTBORDER LEGEND_DRAWBORDER
public void setBorderVisible(boolean b)
b - The border drawing status.public java.awt.Color getBorderColor()
Associated QbChart property:
PLOT_BORDERCOLOR LEGEND_BORDERCOLOR
isBorderVisible()public void setBorderColor(java.awt.Color c)
c - The Color object containing the border color.public int getBorderThickness()
Associated QbChart property: PLOT_BORDER_THICKNESS
public void setBorderThickness(int x)
x - The border thickness value.public boolean isBackgroundVisible()
Associated QbChart property:
DRAW_PLOTBACKGROUND LEGEND_DRAWBACKGROUND
public void setBackgroundVisible(boolean b)
b - The display status for the background.public java.awt.Color getBackgroundColor()
Associated QbChart property:
PLOT_BACKGROUNDCOLOR LEGEND_BACKGROUNDCOLOR
isBackgroundVisible()public void setBackgroundColor(java.awt.Color c)
c - The color value.public int getAppearance()
Associated QbChart property:
PLOT_BACKGROUND_APPEARANCE LEGEND_APPEARANCE
QbChart.RAISE QbChart.LOWER QbChart.PLAIN QbChart.SHADOW QbChart.NONE
public void setAppearance(int x)
x - The background appearance.getAppearance()public int getDepth()
Associated QbChart property:
PLOT_BACKGROUND_DEPTH LEGEND_DEPTH
public void setDepth(int x)
x - The data plotting area depth value.getDepth()
|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||