Class GraphWidget.DivNumberFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Enclosing class:
    GraphWidget

    public class GraphWidget.DivNumberFormat
    extends java.text.DecimalFormat
    class used to format the p-values on the graph
    Author:
    julie
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.NumberFormat

        java.text.NumberFormat.Field
    • Field Summary

      • Fields inherited from class java.text.NumberFormat

        FRACTION_FIELD, INTEGER_FIELD
    • Constructor Summary

      Constructors 
      Constructor Description
      DivNumberFormat​(int magnitude)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuffer format​(double number, java.lang.StringBuffer result, java.text.FieldPosition fieldPosition)  
      java.lang.StringBuffer format​(long number, java.lang.StringBuffer result, java.text.FieldPosition fieldPosition)  
      • Methods inherited from class java.text.DecimalFormat

        applyLocalizedPattern, applyPattern, clone, equals, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern
      • Methods inherited from class java.text.NumberFormat

        format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnly
      • Methods inherited from class java.text.Format

        format, parseObject
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DivNumberFormat

        public DivNumberFormat​(int magnitude)
        Parameters:
        magnitude - what to multiply the p-value by
    • Method Detail

      • format

        public java.lang.StringBuffer format​(double number,
                                             java.lang.StringBuffer result,
                                             java.text.FieldPosition fieldPosition)
        Overrides:
        format in class java.text.DecimalFormat
        Parameters:
        number - number to format
        result - buffer to put the result in
        fieldPosition - the field position
        Returns:
        the format
      • format

        public java.lang.StringBuffer format​(long number,
                                             java.lang.StringBuffer result,
                                             java.text.FieldPosition fieldPosition)
        Overrides:
        format in class java.text.DecimalFormat
        Parameters:
        number - number to format
        result - buffer to put the result in
        fieldPosition - the field position
        Returns:
        the format