Package quadbase.util
Interface IDialPropertySet
public interface IDialPropertySet
This interface is used to modify the properties associated with a 2D dial chart.
A handle to an object that implements this interface can be obtained by calling the
gethDialProperties method defined in QbChart.
eg. QbChart chart = new QbChart(...); IDialPropertySet dial = chart.gethDialProperties();
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintThis method returns the number of label offsetThis method returns the color of the center pointdoubleThis method returns the relative radius of the center pointdoubleThis method returns the ending angle of the chart (12pm position is 0 degree, clockwise)intDeprecated.This method is deprecated and should use getNeedleCount insteaddoublegetHandLength(int index) Deprecated.This method is deprecated and should use getNeedleLength insteadgetLabelOffset(int index) This method returns the offset for specific labelintThis method counts number of needlesdoublegetNeedleLength(int index) This method returns the relative length of the specific needleintThis method returns the needle style Needle style option: RECTANGULAR_POINTER - Rectangular pointer style POINTER - 3 segment Pointer style TRIANGULAR_POINTER - Triangule pointer style POINTED_BLADE - Pointed blade style ROUND_HEADED_BLADE - Round headed blade styledoubleThis method returns the starting angle of the chart (12pm position is 0 degree, clockwise)intThis method returns the number of sub-tickersintThis method returns the length of the sub-tickerintThis method returns the thickness of the sub-tickerintThis method returns the length of the tickerbooleanThis method returns whether ticker 3D shadow is on or notbooleanThis method returns whether draw full circle for dial or notbooleanThis method returns whether the pointer needle is used or notvoidset3DShadowForTickerOn(boolean b) This method sets the ticker 3D shadow is on or notvoidsetCenterPointColor(Color color) This method sets the center point colorvoidsetCenterPointRadius(double lenRatio) This method sets the center point radiusvoidsetDrawFullCircle(boolean state) This method sets drawing full circle for dialvoidsetEndAngle(double angle) This method sets the ending angle of the chart (12pm position is 0 degree, clockwise)voidsetHandLength(int index, double lenRatio) Deprecated.This method is deprecated and should use setNeedleLength insteadvoidsetLabelOffset(int index, Dimension offset) This method sets the offset for specific labelvoidsetLabelOffset(Dimension[] offset) This method sets offset for all labelsvoidsetNeedleLength(int index, double lenRatio) This method sets the relative length of the specific needlevoidsetNeedleStyle(int style) This method sets the needle style Needle style option: RECTANGULAR_POINTER - Rectangular pointer style POINTER - 3 segment Pointer style TRIANGULAR_POINTER - Triangule pointer style POINTED_BLADE - Pointed blade style ROUND_HEADED_BLADE - Round headed blade style style of pointer needlevoidsetPointerUsed(boolean b) This method sets the length of the sub-tickervoidsetStartAngle(double angle) This method sets the starting angle of the chart (12pm position is 0 degree, clockwise)voidsetSubTickerCount(int ct) This method sets number of sub-tickersvoidsetSubTickerLength(int t) This method sets the length of the sub-tickervoidsetSubTickerThickness(int t) This method sets the thickness of the sub-tickervoidsetTickerLength(int t) This method sets the length of the ticker
-
Field Details
-
RECTANGULAR_POINTER
static final int RECTANGULAR_POINTER- See Also:
-
POINTER
static final int POINTER- See Also:
-
TRIANGULAR_POINTER
static final int TRIANGULAR_POINTER- See Also:
-
POINTED_BLADE
static final int POINTED_BLADE- See Also:
-
ROUND_HEADED_BLADE
static final int ROUND_HEADED_BLADE- See Also:
-
-
Method Details
-
getNeedleCount
int getNeedleCount()This method counts number of needles- Returns:
- number of needles
-
getNeedleLength
double getNeedleLength(int index) This method returns the relative length of the specific needle- Parameters:
index- index of the needle- Returns:
- corresponding relative length
- See Also:
-
setNeedleLength
void setNeedleLength(int index, double lenRatio) This method sets the relative length of the specific needle- Parameters:
index- index of the needlelenRatio- relative needle length (radius of the dial chart == 1.0)- See Also:
-
getCenterPointRadius
double getCenterPointRadius()This method returns the relative radius of the center point- Returns:
- corresponding relative radius
- See Also:
-
setCenterPointRadius
void setCenterPointRadius(double lenRatio) This method sets the center point radius- Parameters:
lenRatio- relative center point radius (radius of the dial chart == 1.0)- See Also:
-
getCenterPointColor
Color getCenterPointColor()This method returns the color of the center point- Returns:
- center point color
- See Also:
-
setCenterPointColor
This method sets the center point color- Parameters:
color- Color of the center point- See Also:
-
getStartAngle
double getStartAngle()This method returns the starting angle of the chart (12pm position is 0 degree, clockwise)- Returns:
- the starting angle (in degree)
-
setStartAngle
void setStartAngle(double angle) This method sets the starting angle of the chart (12pm position is 0 degree, clockwise)- Parameters:
angle- the starting angle (in degree)
-
getEndAngle
double getEndAngle()This method returns the ending angle of the chart (12pm position is 0 degree, clockwise)- Returns:
- the ending angle (in degree)
-
setEndAngle
void setEndAngle(double angle) This method sets the ending angle of the chart (12pm position is 0 degree, clockwise)- Parameters:
angle- the ending angle (in degree)
-
getLabelOffset
This method returns the offset for specific label- Parameters:
index- the index of the label (ticker position)- Returns:
- the offset dimension for specific label
-
setLabelOffset
This method sets the offset for specific label- Parameters:
index- the index of the label (ticker position)offset- the label offset dimension
-
setLabelOffset
This method sets offset for all labels- Parameters:
offset- array of labels offset dimension
-
countLabelOffset
int countLabelOffset()This method returns the number of label offset- Returns:
- number of label offset
-
getHandCount
Deprecated.This method is deprecated and should use getNeedleCount insteadThis method counts number of hands- Returns:
- number of hands
-
getHandLength
Deprecated.This method is deprecated and should use getNeedleLength insteadThis method returns the relative length of the specific hand- Parameters:
index- index of the hand- Returns:
- corresponding relative length
- See Also:
-
setHandLength
Deprecated.This method is deprecated and should use setNeedleLength insteadThis method sets the relative length of the specific hand- Parameters:
index- index of the handlenRatio- relative hand length (radius of the dial chart == 1.0)- See Also:
-
isDrawFullCircle
boolean isDrawFullCircle()This method returns whether draw full circle for dial or not- Returns:
- state of drawing full circle
-
setDrawFullCircle
void setDrawFullCircle(boolean state) This method sets drawing full circle for dial- Parameters:
state- the state of drawing full circle
-
getSubTickerLength
int getSubTickerLength()This method returns the length of the sub-ticker- Returns:
- length of the sub-ticker
-
setSubTickerLength
void setSubTickerLength(int t) This method sets the length of the sub-ticker- Parameters:
t- length of the sub-ticker
-
getTickerLength
int getTickerLength()This method returns the length of the ticker- Returns:
- length of the ticker
-
setTickerLength
void setTickerLength(int t) This method sets the length of the ticker- Parameters:
t- length of the ticker
-
is3DShadowForTickerOn
boolean is3DShadowForTickerOn()This method returns whether ticker 3D shadow is on or not- Returns:
- state of ticker 3D shadow
-
set3DShadowForTickerOn
void set3DShadowForTickerOn(boolean b) This method sets the ticker 3D shadow is on or not- Parameters:
b- state of ticker 3D shadow
-
getSubTickerCount
int getSubTickerCount()This method returns the number of sub-tickers- Returns:
- number of sub-tickers
-
setSubTickerCount
void setSubTickerCount(int ct) This method sets number of sub-tickers- Parameters:
number- of the sub-tickers
-
getSubTickerThickness
int getSubTickerThickness()This method returns the thickness of the sub-ticker- Returns:
- the thickness of the sub-ticker
-
setSubTickerThickness
void setSubTickerThickness(int t) This method sets the thickness of the sub-ticker- Parameters:
t- the thickness of the sub-ticker
-
isPointerUsed
boolean isPointerUsed()This method returns whether the pointer needle is used or not- Returns:
- state of pointer needle
-
setPointerUsed
void setPointerUsed(boolean b) This method sets the length of the sub-ticker- Parameters:
b- length of the sub-ticker
-
getNeedleStyle
int getNeedleStyle()This method returns the needle style Needle style option: RECTANGULAR_POINTER - Rectangular pointer style POINTER - 3 segment Pointer style TRIANGULAR_POINTER - Triangule pointer style POINTED_BLADE - Pointed blade style ROUND_HEADED_BLADE - Round headed blade style- Returns:
- style of pointer needle
-
setNeedleStyle
void setNeedleStyle(int style) This method sets the needle style Needle style option: RECTANGULAR_POINTER - Rectangular pointer style POINTER - 3 segment Pointer style TRIANGULAR_POINTER - Triangule pointer style POINTED_BLADE - Pointed blade style ROUND_HEADED_BLADE - Round headed blade style style of pointer needle
-