Examples of StrokeTable


Examples of org.jfree.util.StrokeTable

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        final StrokeTable t1 = new StrokeTable();
        t1.setStroke(0, 0, new BasicStroke(1.0f));
        t1.setStroke(0, 1, new BasicStroke(2.0f));
        t1.setStroke(1, 0, new BasicStroke(3.0f));
        t1.setStroke(1, 1, new BasicStroke(4.0f));

        StrokeTable t2 = null;

        try {
            final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            final ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(t1);
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.