Package quadbase.util
Interface IPolarPropertySet
public interface IPolarPropertySet
This interface is used to modify the properties associated with a 2D polar chart.
A handle to an object that implements this interface can be obtained by calling the gethPolarProperties method defined in QbChart.
eg. QbChart chart = new QbChart(...);
IPolarPropertySet polar = chart.gethPolarProperties();
-
Method Summary
Modifier and TypeMethodDescriptionintThis method returns number of label offsetgetLabelOffset(int index) This method returns the offset for specific labelintThis method counts number of sectorsdoubleThis method returns the starting angle of the chart (12pm position is 0, default: clockwise)booleanThis method returns the angle scale unit.booleanThis method returns the drawing direction TRUE: Clockwise FALSE: Counter-clockwisevoidsetAngleInRadian(boolean b) This method set the angle scale unit.voidsetClockwise(boolean state) This method set the drawing direction TRUE: Clockwise FALSE: Counter-clockwisevoidsetLabelOffset(int index, Dimension offset) This method set the offset for specific labelvoidsetLabelOffset(Dimension[] offset) This method set offset for all labelsvoidsetSectorCount(int ct) This method set number of sectorsvoidsetStartAngle(double angle) This method set the starting angle of the chart (12pm position is 0 degree, default: clockwise)
-
Method Details
-
getSectorCount
int getSectorCount()This method counts number of sectors- Returns:
- number of sectors
-
setSectorCount
void setSectorCount(int ct) This method set number of sectors- Parameters:
ct- number of sectors
-
getStartAngle
double getStartAngle()This method returns the starting angle of the chart (12pm position is 0, default: clockwise)- Returns:
- the starting angle (default: in radian)
-
setStartAngle
void setStartAngle(double angle) This method set the starting angle of the chart (12pm position is 0 degree, default: clockwise)- Parameters:
angle- the starting angle (default: in radian)
-
isAngleInRadian
boolean isAngleInRadian()This method returns the angle scale unit. TRUE: in radian FALSE: in degrees- Returns:
- is using radian scale
- See Also:
-
setAngleInRadian
void setAngleInRadian(boolean b) This method set the angle scale unit. TRUE: in radian FLASE: in degree- Parameters:
unit- using radian scale- See Also:
-
isClockwise
boolean isClockwise()This method returns the drawing direction TRUE: Clockwise FALSE: Counter-clockwise- Returns:
- corresponding drawing direction
- See Also:
-
setClockwise
void setClockwise(boolean state) This method set the drawing direction TRUE: Clockwise FALSE: Counter-clockwise- Parameters:
state- the drawing direction- See Also:
-
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 set the offset for specific label- Parameters:
index- the index of the label (ticker position)offset- the label offset dimension
-
setLabelOffset
This method set offset for all labels- Parameters:
offset- array of labels offset dimension
-
countLabelOffset
int countLabelOffset()This method returns number of label offset- Returns:
- number of label offset
-