Class LogAxisModel

    • Constructor Detail

      • LogAxisModel

        public LogAxisModel()
    • Method Detail

      • canHandle

        public boolean canHandle​(double min,
                                 double max)
        Checks whether the data range can be handled by the model.
        Specified by:
        canHandle in class AbstractAxisModel
        Parameters:
        min - the minimum value
        max - the maximum value
        Returns:
        false if data range contains negative values
      • adjustMinimum

        public double adjustMinimum​(double min)
        Adjusts the minimum to work with this model.
        Specified by:
        adjustMinimum in class AbstractAxisModel
        Parameters:
        min - the minimum to adjust
        Returns:
        the updated value
      • adjustMaximum

        public double adjustMaximum​(double max)
        Adjusts the maximum to work with this model.
        Specified by:
        adjustMaximum in class AbstractAxisModel
        Parameters:
        max - the maximum to adjust
        Returns:
        the updated value
      • doValueToDisplay

        protected String doValueToDisplay​(double value)
        Returns the display string of the value for the tooltip, for instance.
        Specified by:
        doValueToDisplay in class AbstractAxisModel
        Parameters:
        value - the value to turn into string
        Returns:
        the display string
      • valueToPos

        public int valueToPos​(double value)
        Returns the position on the axis for the given value.
        Specified by:
        valueToPos in class AbstractAxisModel
        Parameters:
        value - the value to get the position for
        Returns:
        the corresponding position
      • posToValue

        public double posToValue​(int pos)
        Returns the value for the given position on the axis.
        Specified by:
        posToValue in class AbstractAxisModel
        Parameters:
        pos - the position to get the corresponding value for
        Returns:
        the corresponding value