Class TickFactory

java.lang.Object
org.dawnsci.plotting.jreality.tick.TickFactory

public class TickFactory extends Object
Tick factory produces the different axis ticks. When specifying a format and given the screen size parameters and range it will return a list of Ticks
  • Constructor Details

    • TickFactory

      public TickFactory(TickFormatting format)
      Parameters:
      format -
  • Method Details

    • setTickMode

      public void setTickMode(TickFormatting format)
      Set the TickFactory to a new formating mode
      Parameters:
      format - new format to be used
    • getTickUnit

      public double getTickUnit()
      Returns:
      the size of a tick unit
    • getLabelMin

      public double getLabelMin()
      Returns:
      the label minimum
    • getLabelMax

      public double getLabelMax()
      Returns:
      the label maximum
    • generateTicks

      public LinkedList<Tick> generateTicks(int displaySize, double min, double max, short axisNo, boolean allowMinMaxOver)
      Parameters:
      displaySize -
      min -
      max -
      axisNo -
      allowMinMaxOver - allow min/maximum overwrite
      Returns:
      a list of the ticks for the axis