EspressChart
v 5.5

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

public int getSectorCount()
This method counts number of sectors
Returns:
number of sectors

setSectorCount

public void setSectorCount(int ct)
This method set number of sectors
Parameters:
ct - number of sectors

getStartAngle

public 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

public 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

public 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

public 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

public boolean isClockwise()
This method returns the drawing direction TRUE: Clockwise FALSE: Counter-clockwise
Returns:
corresponding drawing direction
See Also:
setClockwise(boolean)

setClockwise

public void setClockwise(boolean state)
This method set the drawing direction TRUE: Clockwise FALSE: Counter-clockwise
Parameters:
state - the drawing direction
See Also:
isClockwise()

getLabelOffset

public 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

public 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

public void setLabelOffset(java.awt.Dimension[] offset)
This method set offset for all labels
Parameters:
offset - array of labels offset dimension

countLabelOffset

public int countLabelOffset()
This method returns number of label offset
Returns:
number of label offset

EspressChart
v 5.5