public interface ICanvas extends IGradientPropertySet
Modifier and Type | Field and Description |
---|---|
static int |
SCROLLBARS_ALWAYS |
static int |
SCROLLBARS_AS_NEEDED |
static int |
SCROLLBARS_NEVER |
Modifier and Type | Method and Description |
---|---|
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.
|
set3DShadingEnabled, setGradientCyclic, setGradientDesColor, setGradientEnabled, setGradientEndX, setGradientEndY, setGradientShade, setGradientStartX, setGradientStartY
getGradientDesColor, getGradientEndX, getGradientEndY, getGradientShade, getGradientStartX, getGradientStartY, is3DShadingEnabled, isGradientCyclic, isGradientEnabled
static final int SCROLLBARS_AS_NEEDED
static final int SCROLLBARS_ALWAYS
static final int SCROLLBARS_NEVER
java.awt.Dimension getSize()
void setSize(java.awt.Dimension d)
Associated QbChart property: SIZE
d
- The Dimension object containing the new size for the drawing canvas.float getFontResizeRatio()
void setFontResizeRatio(float ratio)
ratio
- valid range 0.0f to 3.0f, inclusive.int getScrollBarOption()
void setScrollBarOption(int option)
option
- Possible scrollbar option. Choices are:
ICanvas.SCROLLBARS_ALWAYS ICanvas.SCROLLBARS_AS_NEEDED ICanvas.SCROLLBARS_NEVER
boolean isFitOnCanvas()
boolean
- isFitOnCanvasvoid setFitOnCanvas(boolean state)
state
- is Fit On Canvasboolean isChartVisible()
void setChartVisible(boolean b)
b
- The boolean state of chart.boolean isBackgroundVisible()
void setBackgroundVisible(boolean b)
Associated QbChart property: DRAW_DESKTOPBACKGROUND
b
- The boolean state of desktop background drawing.java.awt.Color getBackgroundColor()
void setBackgroundColor(java.awt.Color c)
Associated QbChart property: DESKTOP_BACKGROUNDCOLOR
c
- The Color object containing the color for the background.java.net.URL getBackgroundImageURL()
void setBackgroundImageURL(java.net.URL l)
Associated QbChart property: DESKTOPIMAGE
l
- The URL for the background image.int getImageMode()
setImageMode(int)
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
java.awt.Component getCanvasArea()
boolean isReferenceAtTop()
void setReferenceAtTop(boolean state)
state
- The state of the reference position