Examples of CategoryCursor


Examples of org.jfree.data.extension.impl.CategoryCursor

    }

    @Override
    public DatasetCursor getItemCursor() {
        //category item entities are not yet typed
        return new CategoryCursor(rowKey, columnKey);
    }
View Full Code Here

Examples of org.jfree.data.extension.impl.CategoryCursor

        dataset.addValue(1.0, "R1", "C1");
        dataset.addValue(2.0, "R1", "C2");
        dataset.addValue(3.0, "R1", "C3");
        CategoryDatasetSelectionExtension<String, String> ext = new
                CategoryDatasetSelectionExtension<String, String>(dataset);
        CategoryCursor cursor = new CategoryCursor("R1", "C1");
        assertFalse(ext.isSelected(cursor));
        ext.setSelected(cursor, true);
        assertTrue(ext.isSelected(cursor));
        cursor.setPosition("R1", "C2");
        assertFalse(ext.isSelected(cursor));
        dataset.removeColumn("C1");
        assertFalse(ext.isSelected(cursor));

    }
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.