public class DialRenderer

  1. Object
  2. DefaultRenderer
  3. DialRenderer
Dial chart renderer.

Nested types

enum DialRenderer.Type

Constructors

public DialRenderer()

Methods

public double getAngleMin()Returns the start angle value of the dial.
public void setAngleMin(double min)Sets the start angle value of the dial.
public double getAngleMax()Returns the end angle value of the dial.
public void setAngleMax(double max)Sets the end angle value of the dial.
public double getMinValue()Returns the start value to be rendered on the dial.
public void setMinValue(double min)Sets the start value to be rendered on the dial.
public boolean isMinValueSet()Returns if the minimum dial value was set.
public double getMaxValue()Returns the end value to be rendered on the dial.
public void setMaxValue(double max)Sets the end value to be rendered on the dial.
public boolean isMaxValueSet()Returns if the maximum dial value was set.
public double getMinorTicksSpacing()Returns the minor ticks spacing.
public void setMinorTicksSpacing(double spacing)Sets the minor ticks spacing.
public double getMajorTicksSpacing()Returns the major ticks spacing.
public void setMajorTicksSpacing(double spacing)Sets the major ticks spacing.
public DialRenderer.Type getVisualTypeForIndex(int index)Returns the visual type at the specified index.
public void setVisualTypes(DialRenderer.Type[] types)Sets the visual types.

Inherited fields

Inherited methods

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 double
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 double
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 double
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 double
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 double
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 double
the major ticks spacing

getVisualTypeForIndex

public DialRenderer.Type getVisualTypeForIndex(int index)
Returns the visual type at the specified index.

Parameters

index int
the index

Returns

the visual type

setVisualTypes

public void setVisualTypes(DialRenderer.Type[] types)
Sets the visual types.

Parameters

types DialRenderer.Type[]
the visual types