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 Type
    Method
    Description
    int
    This method returns number of label offset
    getLabelOffset(int index)
    This method returns the offset for specific label
    int
    This method counts number of sectors
    double
    This method returns the starting angle of the chart (12pm position is 0, default: clockwise)
    boolean
    This method returns the angle scale unit.
    boolean
    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(int index, Dimension offset)
    This method set the offset for specific label
    void
    This method set offset for all labels
    void
    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 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

      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, 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(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