Examples of NumberTickUnit


Examples of org.jfree.chart.axis.NumberTickUnit

//        units.add(new NumberTickUnit(1000000000, df1, 2));
//        units.add(new NumberTickUnit(2000000000, df1, 2));
//        units.add(new NumberTickUnit(5000000000.0, df1, 5));
//        units.add(new NumberTickUnit(10000000000.0, df1, 2));

        units.add(new NumberTickUnit(1, df0, 2));
        units.add(new NumberTickUnit(2, df0, 2));
        units.add(new NumberTickUnit(4, df0, 2));
        units.add(new NumberTickUnit(8, df0, 2));
        units.add(new NumberTickUnit(16, df0, 2));
        units.add(new NumberTickUnit(32, df0, 2));
        units.add(new NumberTickUnit(64, df0, 2));
        units.add(new NumberTickUnit(128, df0, 2));
        units.add(new NumberTickUnit(256, df0, 2));
        units.add(new NumberTickUnit(512, df0, 2));

        units.add(new NumberTickUnit(1024, df1, 2));
        units.add(new NumberTickUnit(1024 * 2, df1, 2));
        units.add(new NumberTickUnit(1024 * 4, df1, 2));
        units.add(new NumberTickUnit(1024 * 8, df1, 2));
        units.add(new NumberTickUnit(1024 * 16, df1, 2));
        units.add(new NumberTickUnit(1024 * 32, df1, 2));
        units.add(new NumberTickUnit(1024 * 64, df1, 2));
        units.add(new NumberTickUnit(1024 * 128, df1, 2));
        units.add(new NumberTickUnit(1024 * 256, df1, 2));
        units.add(new NumberTickUnit(1024 * 512, df1, 2));

        units.add(new NumberTickUnit(1024 * 1024, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 2, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 4, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 8, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 16, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 32, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 64, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 128, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 256, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 512, df1, 2));

        units.add(new NumberTickUnit(1024 * 1024 * 1024, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 2, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 4, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 8, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 16, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 32, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 64, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 128, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 256, df1, 2));
        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 512, df1, 2));

        units.add(new NumberTickUnit(1024 * 1024 * 1024 * 1024, df1, 2));
        return units;
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

        assertFalse(a1.equals(a2));
        a2.setAutoRangeStickyZero(false);
        assertTrue(a1.equals(a2));

        //private NumberTickUnit tickUnit;
        a1.setTickUnit(new NumberTickUnit(25.0));
        assertFalse(a1.equals(a2));
        a2.setTickUnit(new NumberTickUnit(25.0));
        assertTrue(a1.equals(a2));

        //private NumberFormat numberFormatOverride;
        a1.setNumberFormatOverride(new DecimalFormat("0.00"));
        assertFalse(a1.equals(a2));
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

        this.datasets = new ObjectList();
        this.datasets.set(0, dataset);
        if (dataset != null) {
            dataset.addChangeListener(this);
        }
        this.angleTickUnit = new NumberTickUnit(DEFAULT_ANGLE_TICK_UNIT_SIZE);

        this.axes = new ObjectList();
        this.datasetToAxesMap = new TreeMap();
        this.axes.set(0, radiusAxis);
        if (radiusAxis != null) {
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

     */
    public void setAxisProperties(Axis axis) {
        super.setAxisProperties(axis);
        NumberAxis numberAxis = (NumberAxis) axis;
        if (!isAutoTickUnitSelection()) {
            numberAxis.setTickUnit(new NumberTickUnit(manualTickUnitValue));
        }
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

     */
    public void setAxisProperties(Axis axis) {
        super.setAxisProperties(axis);
        LogAxis logAxis = (LogAxis) axis;
        if (!isAutoTickUnitSelection()) {
            logAxis.setTickUnit(new NumberTickUnit(manualTickUnitValue));
        }
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

    }

    public void updatePlotProperties(Plot plot) {
        super.updatePlotProperties(plot);
        PolarPlot pp = (PolarPlot) plot;
        pp.setAngleTickUnit(new NumberTickUnit(this.manualTickUnitValue));
        pp.setAngleOffset(this.angleOffsetValue);
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

    /**
     * Confirm that the equals method can distinguish all the required fields.
     */
    public void testEquals() {
        NumberTickUnit t1 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        NumberTickUnit t2 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        assertTrue(t1.equals(t2));
        assertTrue(t2.equals(t1));

        t1 = new NumberTickUnit(3.21, new DecimalFormat("0.00"));
        assertFalse(t1.equals(t2));
        t2 = new NumberTickUnit(3.21, new DecimalFormat("0.00"));
        assertTrue(t1.equals(t2));

        t1 = new NumberTickUnit(3.21, new DecimalFormat("0.000"));
        assertFalse(t1.equals(t2));
        t2 = new NumberTickUnit(3.21, new DecimalFormat("0.000"));
        assertTrue(t1.equals(t2));
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

    /**
     * Two objects that are equal are required to return the same hashCode.
     */
    public void testHashCode() {
        NumberTickUnit t1 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        NumberTickUnit t2 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        int h1 = t1.hashCode();
        int h2 = t2.hashCode();
        assertEquals(h1, h2);
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

    /**
     * This is an immutable class so it doesn't need to be cloneable.
     */
    public void testCloning() {
        NumberTickUnit t1 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        assertFalse(t1 instanceof Cloneable);
    }
View Full Code Here

Examples of org.jfree.chart.axis.NumberTickUnit

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {
        NumberTickUnit t1 = new NumberTickUnit(1.23, new DecimalFormat("0.00"));
        NumberTickUnit t2 = null;
        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(t1);
            out.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.