Class TrigonometricTickRenderer

java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.renderers.TrigonometricTickRenderer
All Implemented Interfaces:
ITickRenderer

public class TrigonometricTickRenderer extends Object implements ITickRenderer
Render ticks as multiple of π if the input value to be formated is not further to a multiple of π than delta.
Author:
Martin Pernollet
  • Field Details

    • maxDenominator

      protected int maxDenominator
    • delta

      protected double delta
  • Constructor Details

    • TrigonometricTickRenderer

      public TrigonometricTickRenderer()
    • TrigonometricTickRenderer

      public TrigonometricTickRenderer(double delta)
      Allow overriding the authorized delta to a known trigonometric angle in radian.
    • TrigonometricTickRenderer

      public TrigonometricTickRenderer(int maxDenominator)
      Allow overriding the max authorized π denominator. Growing this value leads to slower π fraction estimation. Decreasing this value leads to less fraction being supported
    • TrigonometricTickRenderer

      public TrigonometricTickRenderer(double delta, int maxDenominator)
  • Method Details

    • autoDelta

      protected void autoDelta(int maxDenominator)
    • format

      public String format(double value)
      Specified by:
      format in interface ITickRenderer
    • eq

      protected boolean eq(double value, double ref, double delta)
    • eq

      protected boolean eq(double value, double ref)
    • getDelta

      public double getDelta()
    • setDelta

      public void setDelta(double delta)