EspressReport 6.6

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
 int countLabelOffset()
          This method returns number of label offset
 java.awt.Dimension getLabelOffset(int index)
          This method returns the offset for specific label
 int getSectorCount()
          This method counts number of sectors
 double getStartAngle()
          This method returns the starting angle of the chart (12pm position is 0, default: clockwise)
 boolean isAngleInRadian()
          This method returns the angle scale unit.
 boolean isClockwise()
          This method returns the drawing direction TRUE: Clockwise FALSE: Counter-clockwise
 void setAngleInRadian(boolean b)
          This method set the angle scale unit.
 void setClockwise(boolean state)
          This method set the drawing direction TRUE: Clockwise FALSE: Counter-clockwise
 void setLabelOffset(java.awt.Dimension[] offset)
          This method set offset for all labels
 void setLabelOffset(int index, java.awt.Dimension offset)
          This method set the offset for specific label
 void setSectorCount(int ct)
          This method set number of sectors
 void setStartAngle(double angle)
          This method set the starting angle of the chart (12pm position is 0 degree, default: clockwise)
 

Method Detail

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(boolean)

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:
isAngleInRadian()

isClockwise

boolean isClockwise()
This method returns the drawing direction TRUE: Clockwise FALSE: Counter-clockwise

Returns:
corresponding drawing direction
See Also:
setClockwise(boolean)

setClockwise

void setClockwise(boolean state)
This method set the drawing direction TRUE: Clockwise FALSE: Counter-clockwise

Parameters:
state - the drawing direction
See Also:
isClockwise()

getLabelOffset

java.awt.Dimension getLabelOffset(int index)
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

void setLabelOffset(int index,
                    java.awt.Dimension offset)
This method set the offset for specific label

Parameters:
index - the index of the label (ticker position)
offset - the label offset dimension

setLabelOffset

void setLabelOffset(java.awt.Dimension[] offset)
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

EspressReport 6.6