public interface IPlot extends IGradientPropertySet
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
Modifier and Type | Method and Description |
---|---|
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 |
getCutCornerWidth()
Gets the cut corner width for the cut corner appearance (in pixel)
|
int |
getDepth()
Returns the data plotting area depth.
|
java.lang.String |
getDialBGImageRelativeURL()
Gets the relative URL of the dial chart plot background image
|
java.net.URL |
getDialBGImageURL()
Gets the full URL of the dial chart plot background image
|
double |
getDialBGRatio()
Gets the radius ratio of the dial chart plot background image to the plot area
|
boolean |
getDialBGState()
Gets the state of dial chart plot background image
|
java.lang.String |
getDialFGImageRelativeURL()
Gets the relative URL of the dial chart plot foreground image
|
java.net.URL |
getDialFGImageURL()
Gets the full URL of the dial chart plot foreground image
|
double |
getDialFGRatio()
Gets the radius ratio of the dial chart plot foreground image to the plot area
|
boolean |
getDialFGState()
Gets the state of dial chart plot foreground image
|
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 |
setCutCornerWidth(int cutCorner)
Gets the cut corner width for the cut corner appearance
|
void |
setDepth(int x)
Sets the data plotting area depth.
|
void |
setDialBGImage(java.net.URL url,
int option)
Sets the dial chart plot background image
|
void |
setDialBGImage(java.net.URL url,
java.lang.String relativeURL,
int option)
Sets the dial chart plot background image including relative URL.
|
void |
setDialBGRatio(double ratio)
Sets the radius ratio for the dial chart plot background image.
|
void |
setDialBGState(boolean state)
Enable or disables the dial chart plot background image.
|
void |
setDialFGImage(java.net.URL url,
int option)
Sets the dial chart plot foreground image
|
void |
setDialFGImage(java.net.URL url,
java.lang.String relativeURL,
int option)
Sets the dial chart plot foreground image including relative URL.
|
void |
setDialFGRatio(double ratio)
Sets the radius ratio for the dial chart plot foreground image.
|
void |
setDialFGState(boolean state)
Enable or disables the dial chart plot foreground image.
|
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.
|
set3DShadingEnabled, setGradientCyclic, setGradientDesColor, setGradientEnabled, setGradientEndX, setGradientEndY, setGradientShade, setGradientStartX, setGradientStartY
getGradientDesColor, getGradientEndX, getGradientEndY, getGradientShade, getGradientStartX, getGradientStartY, is3DShadingEnabled, isGradientCyclic, isGradientEnabled
float getRelativeWidth()
Associated QbChart property: PLOT_WIDTH
void setRelativeWidth(float width)
width
- The relative width of the chart plot area. Should be between 0 and 1.float getRelativeHeight()
Associated QbChart property: PLOT_HEIGHT
void setRelativeHeight(float height)
height
- The relative height of the chart plot area. Should be between 0 and 1.Position getPosition()
Associated QbChart property:
PLOT_XPOS PLOT_YPOS LEGEND_XPOS LEGEND_YPOS
Position
void setPosition(Position p)
p
- The Position object containing the relative positon.Position
boolean isBorderVisible()
Associated QbChart property:
DRAW_PLOTBORDER LEGEND_DRAWBORDER
void setBorderVisible(boolean b)
b
- The border drawing status.java.awt.Color getBorderColor()
Associated QbChart property:
PLOT_BORDERCOLOR LEGEND_BORDERCOLOR
isBorderVisible()
void setBorderColor(java.awt.Color c)
c
- The Color object containing the border color.int getBorderThickness()
Associated QbChart property: PLOT_BORDER_THICKNESS
void setBorderThickness(int x)
x
- The border thickness value.boolean isBackgroundVisible()
Associated QbChart property:
DRAW_PLOTBACKGROUND LEGEND_DRAWBACKGROUND
void setBackgroundVisible(boolean b)
b
- The display status for the background.java.awt.Color getBackgroundColor()
Associated QbChart property:
PLOT_BACKGROUNDCOLOR LEGEND_BACKGROUNDCOLOR
isBackgroundVisible()
void setBackgroundColor(java.awt.Color c)
c
- The color value.int getAppearance()
Associated QbChart property:
PLOT_BACKGROUND_APPEARANCE LEGEND_APPEARANCE
QbChart.RAISE QbChart.LOWER QbChart.PLAIN QbChart.SHADOW QbChart.NONE
void setAppearance(int x)
x
- The background appearance.getAppearance()
int getDepth()
Associated QbChart property:
PLOT_BACKGROUND_DEPTH LEGEND_DEPTH
void setDepth(int x)
x
- The data plotting area depth value.getDepth()
void setDialBGState(boolean state)
state
- void setDialBGImage(java.net.URL url, java.lang.String relativeURL, int option)
url
- Full URL of imagerelativeURL
- Relative URL of imageoption
- Image option, see ImageData classvoid setDialBGRatio(double ratio)
ratio
- void setDialBGImage(java.net.URL url, int option)
url
- Full URL of imageoption
- Image option, see ImageData classboolean getDialBGState()
java.net.URL getDialBGImageURL()
java.lang.String getDialBGImageRelativeURL()
double getDialBGRatio()
void setDialFGState(boolean state)
state
- void setDialFGImage(java.net.URL url, java.lang.String relativeURL, int option)
url
- Full URL of imagerelativeURL
- Relative URL of imageoption
- Image option, see ImageData classvoid setDialFGRatio(double ratio)
ratio
- void setDialFGImage(java.net.URL url, int option)
url
- Full URL of imageoption
- Image option, see ImageData classboolean getDialFGState()
java.net.URL getDialFGImageURL()
java.lang.String getDialFGImageRelativeURL()
double getDialFGRatio()
void setCutCornerWidth(int cutCorner)
int getCutCornerWidth()