Class DialRenderer

java.lang.Object
com.codename1.charts.renderers.DefaultRenderer
com.codename1.charts.renderers.DialRenderer

public class DialRenderer extends DefaultRenderer
Dial chart renderer.
  • Constructor Details

    • DialRenderer

      public DialRenderer()
  • Method Details

    • getAngleMin

      public double getAngleMin()

      Returns the start angle value of the dial.

      Returns

      the angle start value

    • setAngleMin

      public void setAngleMin(double min)

      Sets the start angle value of the dial.

      Parameters
      • min: the dial angle start value
    • getAngleMax

      public double getAngleMax()

      Returns the end angle value of the dial.

      Returns

      the angle end value

    • setAngleMax

      public void setAngleMax(double max)

      Sets the end angle value of the dial.

      Parameters
      • max: the dial angle end value
    • getMinValue

      public double getMinValue()

      Returns the start value to be rendered on the dial.

      Returns

      the start value on dial

    • setMinValue

      public void setMinValue(double min)

      Sets the start value to be rendered on the dial.

      Parameters
      • min: the start value on the dial
    • isMinValueSet

      public boolean isMinValueSet()

      Returns if the minimum dial value was set.

      Returns

      the minimum dial value was set or not

    • getMaxValue

      public double getMaxValue()

      Returns the end value to be rendered on the dial.

      Returns

      the end value on the dial

    • setMaxValue

      public void setMaxValue(double max)

      Sets the end value to be rendered on the dial.

      Parameters
      • max: the end value on the dial
    • isMaxValueSet

      public boolean isMaxValueSet()

      Returns if the maximum dial value was set.

      Returns

      the maximum dial was set or not

    • getMinorTicksSpacing

      public double getMinorTicksSpacing()

      Returns the minor ticks spacing.

      Returns

      the minor ticks spacing

    • setMinorTicksSpacing

      public void setMinorTicksSpacing(double spacing)

      Sets the minor ticks spacing.

      Parameters
      • spacing: the minor ticks spacing
    • getMajorTicksSpacing

      public double getMajorTicksSpacing()

      Returns the major ticks spacing.

      Returns

      the major ticks spacing

    • setMajorTicksSpacing

      public void setMajorTicksSpacing(double spacing)

      Sets the major ticks spacing.

      Parameters
      • spacing: the major ticks spacing
    • getVisualTypeForIndex

      public DialRenderer.Type getVisualTypeForIndex(int index)

      Returns the visual type at the specified index.

      Parameters
      • index: the index
      Returns

      the visual type

    • setVisualTypes

      public void setVisualTypes(DialRenderer.Type[] types)

      Sets the visual types.

      Parameters
      • types: the visual types