public class ControlRange extends java.lang.Object implements IGradientPropertySet
IControlRangeSet
Constructor and Description |
---|
ControlRange(ControlRange cr) |
ControlRange(double startScale,
double endScale,
java.awt.Color color,
java.lang.String title,
boolean showInLegend)
Creates a new control range area.
|
ControlRange(double startScale,
double endScale,
java.awt.Color color,
java.lang.String title,
int appear,
int depth,
boolean showInLegend)
Creates a new control range area.
|
ControlRange(double startScale,
double endScale,
java.awt.Color color,
java.lang.String title,
int thickness,
int offset,
java.awt.Point center,
boolean drawBorder,
boolean showInLegend)
Creates a new control range area for dial chart.
|
ControlRange(double startScale,
double endScale,
java.awt.Color color,
java.lang.String title,
int thickness,
int offset,
java.awt.Point center,
boolean drawBorder,
boolean showInLegend,
boolean showAxis)
Creates a new control range area for dial chart.
|
ControlRange(double startScale,
double endScale,
java.lang.String title,
boolean legend)
Creates a new control range area.
|
ControlRange(double startScale,
double endScale,
java.lang.String title,
int appear,
int depth,
boolean showInLegend)
Creates a new control range area.
|
ControlRange(double startScale,
double endScale,
java.lang.String title,
int thickness,
int offset,
java.awt.Point center,
boolean drawBorder,
boolean showInLegend)
Creates a new control range area.
|
ControlRange(double startScale,
double endScale,
java.lang.String title,
int thickness,
int offset,
java.awt.Point center,
boolean drawBorder,
boolean showInLegend,
boolean showAxis)
Creates a new control range area.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(ControlRange cr) |
static java.util.Vector |
copy(java.util.Vector crl) |
int |
getAppearance()
Returns the background appearance for the control ranges.
|
java.awt.Point |
getCenter()
Returns center of the control range (for dial chart only) The percentage of the radius from 0
to 100 and dial center is (0, 0)
|
java.awt.Color |
getColor()
Returns color of the control range
|
int |
getDepth()
Returns the control range area depth.
|
int |
getDirection()
Returns the direction of the control range (Dial chart does not support this feature) Only
coordinates system charts support this feature
|
java.awt.Dimension |
getEndLabelOffset()
Returns end label offset of the control range
|
double |
getEndScale()
Returns end scale of the control range for column/bar type: scale of value axis
|
double |
getEndScale(quadbase.chart.Chart chart) |
double |
getEndScale2()
Returns end scale 2 of the control range for column/bar type: scale of category axis not used
for dial chart
|
double |
getEndScale2(quadbase.chart.Chart chart) |
java.awt.Color |
getGradientDesColor() |
double |
getGradientEndX() |
double |
getGradientEndY() |
int |
getGradientShade() |
double |
getGradientStartX() |
double |
getGradientStartY() |
java.awt.Color |
getLabelColor()
Returns color of the control range
|
java.awt.Font |
getLabelFont()
Returns label font of the control range
|
static double |
getMaxValueOnCategoryAxis(quadbase.chart.Chart chart) |
static double |
getMaxValueOnValueAxis(quadbase.chart.Chart chart) |
int |
getOffset()
Returns offset of the control range (for dial chart only) The percentage of the radius from 0
to 100
|
java.awt.Dimension |
getStartLabelOffset()
Returns start label offset of the control range
|
double |
getStartScale()
Returns start scale of the control range for column/bar type: scale of value axis
|
double |
getStartScale(quadbase.chart.Chart chart) |
double |
getStartScale2()
Returns start scale 2 of the control range
|
double |
getStartScale2(quadbase.chart.Chart chart) |
int |
getThickness()
Returns thickness of the control range (for dial chart only) The percentage of the radius
from 0 to 100
|
java.lang.String |
getTitle()
Returns title of the control range
|
int |
getX1(quadbase.chart.Chart chart)
For internal use only
|
int |
getX2(quadbase.chart.Chart chart)
For internal use only
|
int |
getY1(quadbase.chart.Chart chart)
For internal use only
|
int |
getY2(quadbase.chart.Chart chart)
For internal use only
|
boolean |
is3DShadingEnabled() |
boolean |
isDrawBorder()
Returns whether border is drawn (for dial chart only)
|
boolean |
isDrawFullBorder()
Returns whether full border is drawn (for dial chart only)
|
boolean |
isGradientCyclic() |
boolean |
isGradientEnabled() |
boolean |
isHorizontalRange(quadbase.chart.Chart chart)
For internal use only
|
boolean |
isOverlapAreaHighlighted()
Returns whether overlap area is highlighted
|
boolean |
isPercentage() |
boolean |
isScale1Enabled()
Returns whether scale 1 is enabled for column/bar type: scale 1 is category axis
|
boolean |
isScale2Enabled()
Returns whether scale 2 is enabled for column/bar type: scale 2 is value axis not used for
dial chart
|
boolean |
isShowAxis() |
boolean |
isShowInLegend()
Returns whether title of the control range is displayed in the legend
|
boolean |
isShowLabel()
Returns whether label of the control range is displayed
|
static ControlRange |
read(java.io.DataInput din,
int version)
For internal use only
|
void |
set3DShadingEnabled(boolean b) |
void |
setAppearance(int appear)
Sets the background appearance for the control range.
|
void |
setCenter(java.awt.Point center)
Sets center of the control range (for dial chart only) The percentage of the radius from 0 to
100 and dial center is (0, 0)
|
void |
setColor(java.awt.Color color)
Sets color of the control range
|
void |
setDepth(int depth)
Sets the control range area depth.
|
void |
setDirection(int direction)
Sets the direction of the control range (Dial chart does not support this feature) Only
coordinates system charts support this feature
|
void |
setDrawBorder(boolean state)
Sets whether border is drawn (for dial chart only)
|
void |
setDrawFullBorder(boolean state)
Sets whether full border is drawn (for dial chart only)
|
void |
setEndLabelOffset(java.awt.Dimension d)
Sets end label offset of the control range
|
void |
setEndScale(double scale)
Sets end scale of the control range for column/bar type: scale of value axis
|
void |
setEndScale2(double scale)
Sets end scale 2 of the control range for column/bar type: scale of category axis not used
for dial chart
|
void |
setGradientCyclic(boolean c) |
void |
setGradientDesColor(java.awt.Color c) |
void |
setGradientEnabled(boolean b) |
void |
setGradientEndX(double x) |
void |
setGradientEndY(double y) |
void |
setGradientShade(int s) |
void |
setGradientStartX(double x) |
void |
setGradientStartY(double y) |
void |
setLabelColor(java.awt.Color c)
Sets label color of the control range
|
void |
setLabelFont(java.awt.Font f)
Sets label font of the control range
|
void |
setOffset(int offset)
Sets offset of the control range (for dial chart only) The percentage of the radius from 0 to
100
|
void |
setOverlapAreaHighlighted(boolean b)
Highlights overlap area
|
void |
setPercentage(boolean percentage) |
void |
setScale1Enabled(boolean b)
Sets scale 1 enabled for column/bar type: scale 1 is category axis
|
void |
setScale2Enabled(boolean b)
Sets scale 2 enabled for column/bar type: scale 2 is category axis not used for dial chart
|
void |
setShowAxis(boolean b) |
void |
setShowInLegend(boolean showInLegend)
Sets whether title of the control range is displayed in the legend
|
void |
setShowLabel(boolean b)
Sets whether label of the control range is displayed.
|
void |
setStartLabelOffset(java.awt.Dimension d)
Sets start label offset of the control range
|
void |
setStartScale(double scale)
Sets start scale of the control range for column/bar type: scale of value axis
|
void |
setStartScale2(double scale)
Sets start scale 2 of the control range
|
void |
setThickness(int t)
Sets thickness of the control range (for dial chart only) The percentage of the radius from 0
to 100
|
void |
setTitle(java.lang.String title)
Sets title of the control range
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput dout)
For internal use only
|
public ControlRange(double startScale, double endScale, java.lang.String title, boolean legend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangetitle
- title of the control rangelegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.lang.String title, int thickness, int offset, java.awt.Point center, boolean drawBorder, boolean showInLegend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangetitle
- title of the control rangethickness
- thickness of the control rangeoffset
- offset of the control rangecenter
- center of control rangedrawBorder
- draw line bordershowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.lang.String title, int thickness, int offset, java.awt.Point center, boolean drawBorder, boolean showInLegend, boolean showAxis)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangetitle
- title of the control rangethickness
- thickness of the control rangeoffset
- offset of the control rangecenter
- center of control rangedrawBorder
- draw line bordershowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.awt.Color color, java.lang.String title, boolean showInLegend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangecolor
- control range colortitle
- title of the control rangeshowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.awt.Color color, java.lang.String title, int thickness, int offset, java.awt.Point center, boolean drawBorder, boolean showInLegend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangecolor
- control range colortitle
- title of the control rangethickness
- thickness of the control rangeoffset
- offset of the control rangecenter
- center of control rangedrawBorder
- draw line bordershowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.awt.Color color, java.lang.String title, int thickness, int offset, java.awt.Point center, boolean drawBorder, boolean showInLegend, boolean showAxis)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangecolor
- control range colortitle
- title of the control rangethickness
- thickness of the control rangeoffset
- offset of the control rangecenter
- center of control rangedrawBorder
- draw line bordershowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.lang.String title, int appear, int depth, boolean showInLegend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangetitle
- title of the control rangeappear
- appearance of the control range. Valid values are QbChart.PLAIN, QbChart.LOWER,
QbChart.RAISE, QbChart.SHADOW and QbChart.NONEdepth
- depth of the control rangeshowInLegend
- show title in legendpublic ControlRange(double startScale, double endScale, java.awt.Color color, java.lang.String title, int appear, int depth, boolean showInLegend)
startScale
- lower scale of the control rangeendScale
- upper scale of the control rangecolor
- control range colortitle
- title of the control rangeappear
- appearance of the control range. Valid values are QbChart.PLAIN, QbChart.LOWER,
QbChart.RAISE, QbChart.SHADOW and QbChart.NONEdepth
- depth of the control rangeshowInLegend
- show title in legendpublic ControlRange(ControlRange cr)
public static java.util.Vector copy(java.util.Vector crl)
public void copy(ControlRange cr)
public double getStartScale()
public double getStartScale(quadbase.chart.Chart chart)
public void setStartScale(double scale)
scale
- lower scale of the control rangepublic double getEndScale()
public double getEndScale(quadbase.chart.Chart chart)
public void setEndScale(double scale)
scale
- upper scale of the control rangepublic double getStartScale2()
for column/bar type: scale of category axis
not used for dial chart
public double getStartScale2(quadbase.chart.Chart chart)
public void setStartScale2(double scale)
for column/bar type: scale of category axis
not used for dial chart
scale
- lower scale of the control rangepublic double getEndScale2()
public double getEndScale2(quadbase.chart.Chart chart)
public void setEndScale2(double scale)
scale
- upper scale of the control rangepublic boolean isScale1Enabled()
public void setScale1Enabled(boolean b)
b
- the state of scale 1public boolean isScale2Enabled()
public void setScale2Enabled(boolean b)
b
- the state of scale 2public boolean isOverlapAreaHighlighted()
not used for dial chart
public void setOverlapAreaHighlighted(boolean b)
not used for dial chart
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- color of the control rangepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- control range titlepublic int getThickness()
public void setThickness(int t)
t
- - thickness of the control rangepublic int getOffset()
public void setOffset(int offset)
offset
- offset of the control rangepublic java.awt.Point getCenter()
public void setCenter(java.awt.Point center)
center
- center of the control rangepublic boolean isDrawBorder()
public void setDrawBorder(boolean state)
state
- the new state of drawing borderpublic boolean isDrawFullBorder()
public void setDrawFullBorder(boolean state)
state
- the new state of drawing full borderpublic boolean isShowInLegend()
public void setShowInLegend(boolean showInLegend)
showInLegend
- the new state of show title in legendpublic int getAppearance()
QbChart.RAISE QbChart.LOWER QbChart.PLAIN QbChart.SHADOW QbChart.NONE
public void setAppearance(int appear)
appear
- The background appearance. Valid values are:
QbChart.RAISE QbChart.LOWER QbChart.PLAIN QbChart.SHADOW QbChart.NONE
getAppearance()
public int getDepth()
public void setDepth(int depth)
depth
- The control range area depth value.getDepth()
public int getDirection()
public void setDirection(int direction)
direction
- QbChart.VERTICAL or QbChart.HORIZONTALpublic void write(java.io.DataOutput dout) throws java.io.IOException
java.io.IOException
public static ControlRange read(java.io.DataInput din, int version) throws java.io.IOException
java.io.IOException
public boolean isHorizontalRange(quadbase.chart.Chart chart)
public int getX1(quadbase.chart.Chart chart)
public int getX2(quadbase.chart.Chart chart)
public int getY1(quadbase.chart.Chart chart)
public int getY2(quadbase.chart.Chart chart)
public static double getMaxValueOnValueAxis(quadbase.chart.Chart chart)
public static double getMaxValueOnCategoryAxis(quadbase.chart.Chart chart)
public void setShowLabel(boolean b)
b
- the new state of labelpublic boolean isShowLabel()
public java.awt.Dimension getStartLabelOffset()
public void setStartLabelOffset(java.awt.Dimension d)
public java.awt.Dimension getEndLabelOffset()
public void setEndLabelOffset(java.awt.Dimension d)
public java.awt.Color getLabelColor()
public void setLabelColor(java.awt.Color c)
c
- label color of the control rangepublic java.awt.Font getLabelFont()
public void setLabelFont(java.awt.Font f)
f
- font of the control rangepublic java.lang.String toString()
toString
in class java.lang.Object
public void setShowAxis(boolean b)
public boolean isShowAxis()
public boolean isGradientEnabled()
isGradientEnabled
in interface IGradientSupport
public void setGradientEnabled(boolean b)
setGradientEnabled
in interface IGradientPropertySet
public boolean is3DShadingEnabled()
is3DShadingEnabled
in interface IGradientSupport
public void set3DShadingEnabled(boolean b)
set3DShadingEnabled
in interface IGradientPropertySet
public double getGradientStartX()
getGradientStartX
in interface IGradientSupport
public double getGradientStartY()
getGradientStartY
in interface IGradientSupport
public double getGradientEndX()
getGradientEndX
in interface IGradientSupport
public double getGradientEndY()
getGradientEndY
in interface IGradientSupport
public java.awt.Color getGradientDesColor()
getGradientDesColor
in interface IGradientSupport
public int getGradientShade()
getGradientShade
in interface IGradientSupport
public boolean isGradientCyclic()
isGradientCyclic
in interface IGradientSupport
public void setGradientStartX(double x)
setGradientStartX
in interface IGradientPropertySet
public void setGradientStartY(double y)
setGradientStartY
in interface IGradientPropertySet
public void setGradientEndX(double x)
setGradientEndX
in interface IGradientPropertySet
public void setGradientEndY(double y)
setGradientEndY
in interface IGradientPropertySet
public void setGradientDesColor(java.awt.Color c)
setGradientDesColor
in interface IGradientPropertySet
public void setGradientShade(int s)
setGradientShade
in interface IGradientPropertySet
public void setGradientCyclic(boolean c)
setGradientCyclic
in interface IGradientPropertySet
public boolean isPercentage()
public void setPercentage(boolean percentage)