|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is used to set/get properties associated with the main drawing canvas containing the chart. A handle to an object that implements this interface can be obtained by calling the gethCanvas method in QbChart.
| Field Summary | |
static int |
SCROLLBARS_ALWAYS
|
static int |
SCROLLBARS_AS_NEEDED
|
static int |
SCROLLBARS_NEVER
|
| Method Summary | |
java.awt.Color |
getBackgroundColor()
This function returns the color of the desktop background. |
java.net.URL |
getBackgroundImageURL()
Returns the URL of the background image drawn on the canvas. |
java.awt.Component |
getCanvasArea()
Returns canvas area component |
float |
getFontResizeRatio()
Returns the ratio of font auto-resize to the chart canvas size change. |
int |
getImageMode()
Returns the mode of the background image. |
int |
getScrollBarOption()
Returns the scrollbar option for the main chart panel. |
java.awt.Dimension |
getSize()
Returns the size of the main canvas containing the chart as a Dimension object. |
boolean |
isBackgroundVisible()
Determines whether the desktop background area drawing (i.e., the rest of canvas other than the chart plot area) is enabled or not. |
boolean |
isChartVisible()
Determines whether chart is visible or not. |
boolean |
isFitOnCanvas()
Returns whether reposition chart location or reduce chart size in order to fit chart on canvas. |
boolean |
isReferenceAtTop()
Returns whether the reference position of legend and annotation text is top or not |
void |
setBackgroundColor(java.awt.Color c)
Sets the color of the desktop background. |
void |
setBackgroundImageURL(java.net.URL l)
Sets the URL of the image drawn on the background. |
void |
setBackgroundVisible(boolean b)
Sets whether the desktop background area drawing (i.e., the rest of canvas other than the chart plot area) is enabled or not. |
void |
setChartVisible(boolean b)
Sets the visibility of chart. |
void |
setFitOnCanvas(boolean state)
Try to fit a chart on canvas. |
void |
setFontResizeRatio(float ratio)
Sets the ratio of font auto-resize to the chart canvas size change. |
void |
setImageMode(int x)
Sets the display option for the background image. |
void |
setReferenceAtTop(boolean state)
Sets the reference position of legend and annotation text to the top |
void |
setScrollBarOption(int option)
Sets the scrollbar option for the main chart panel. |
void |
setSize(java.awt.Dimension d)
Sets the size of the main canvas containing the chart. |
| Field Detail |
public static final int SCROLLBARS_AS_NEEDED
public static final int SCROLLBARS_ALWAYS
public static final int SCROLLBARS_NEVER
| Method Detail |
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension d)
Associated QbChart property: SIZE
d - The Dimension object containing the new size for the
drawing canvas.public float getFontResizeRatio()
public void setFontResizeRatio(float ratio)
ratio - valid range 0.0f to 3.0f, inclusive.public int getScrollBarOption()
public void setScrollBarOption(int option)
option - Possible scrollbar option. Choices are:
ICanvas.SCROLLBARS_ALWAYS ICanvas.SCROLLBARS_AS_NEEDED ICanvas.SCROLLBARS_NEVER
public boolean isFitOnCanvas()
boolean - isFitOnCanvaspublic void setFitOnCanvas(boolean state)
state - is Fit On Canvaspublic boolean isChartVisible()
public void setChartVisible(boolean b)
b - The boolean state of chart.public boolean isBackgroundVisible()
public void setBackgroundVisible(boolean b)
Associated QbChart property: DRAW_DESKTOPBACKGROUND
b - The boolean state of desktop background drawing.public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color c)
Associated QbChart property: DESKTOP_BACKGROUNDCOLOR
c - The Color object containing the color for the background.public java.net.URL getBackgroundImageURL()
public void setBackgroundImageURL(java.net.URL l)
Associated QbChart property: DESKTOPIMAGE
l - The URL for the background image.public int getImageMode()
setImageMode(int)public void setImageMode(int x)
Associated QbChart property: DESKTOPIMAGE_OPTION
x - The display option for the background image.
Available options are:
QbChart.TILE QbChart.FIT QbChart.CENTER QbChart.NONE
public java.awt.Component getCanvasArea()
public boolean isReferenceAtTop()
public void setReferenceAtTop(boolean state)
state - The state of the reference position
|
EspressChart v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||