Java 类org.jfree.chart.util.LogFormat 实例源码

项目:ccu-historian    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:aya-lang    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:populus    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:PI    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:ECG-Viewer    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:astor    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:group-five    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:manydesigns.cn    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:buffer_bci    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:buffer_bci    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 * 
 * @deprecated This method is no longer used internally and will be removed
 *     from a future version.  If you need this method, copy the source
 *     code into your project.
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:proyecto-teoria-control-utn-frro    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:Memetic-Algorithm-for-TSP    文件:LogAxis.java   
/**
 * Returns a collection of tick units for log (base 10) values.
 * Uses a given Locale to create the DecimalFormats.
 *
 * @param locale the locale to use to represent Numbers.
 *
 * @return A collection of tick units for integer values.
 *
 * @since 1.0.7
 */
public static TickUnitSource createLogTickUnits(Locale locale) {
    TickUnits units = new TickUnits();
    NumberFormat numberFormat = new LogFormat();
    units.add(new NumberTickUnit(0.05, numberFormat, 2));
    units.add(new NumberTickUnit(0.1, numberFormat, 10));
    units.add(new NumberTickUnit(0.2, numberFormat, 2));
    units.add(new NumberTickUnit(0.5, numberFormat, 5));
    units.add(new NumberTickUnit(1, numberFormat, 10));
    units.add(new NumberTickUnit(2, numberFormat, 10));
    units.add(new NumberTickUnit(3, numberFormat, 15));
    units.add(new NumberTickUnit(4, numberFormat, 20));
    units.add(new NumberTickUnit(5, numberFormat, 25));
    units.add(new NumberTickUnit(6, numberFormat));
    units.add(new NumberTickUnit(7, numberFormat));
    units.add(new NumberTickUnit(8, numberFormat));
    units.add(new NumberTickUnit(9, numberFormat));
    units.add(new NumberTickUnit(10, numberFormat));
    return units;
}
项目:astor    文件:LogFormatTests.java   
/**
 * Two objects that are equal are required to return the same hashCode.
 */
public void testHashcode() {
    LogFormat f1 = new LogFormat(10.0, "10", true);
    LogFormat f2 = new LogFormat(10.0, "10", true);
    assertTrue(f1.equals(f2));
    int h1 = f1.hashCode();
    int h2 = f2.hashCode();
    assertEquals(h1, h2);
}