Package org.geotools.styling

Examples of org.geotools.styling.ExternalMark


        Graphic g = sym.getGraphic();
        assertEquals(15.0, g.getSize().evaluate(null, Double.class));
        assertEquals(1, g.graphicalSymbols().size());

        Mark mark = (Mark) g.graphicalSymbols().get(0);
        ExternalMark em = mark.getExternalMark();
        assertNotNull(em);
        assertEquals("image/png", em.getFormat());
        assertImagesEqual(referenceImage, em.getInlineContent());
        assertNull(em.getOnlineResource());
    }
View Full Code Here


           
            if (node.hasChild("MarkIndex")) {
                markIndex = (Integer) node.getChildValue("MarkIndex");
            }
           
            ExternalMark emark = null;
           
            if (node.hasChild("OnlineResource")) {
                emark = styleFactory.externalMark(
                    new OnLineResourceImpl((URI)node.getChildValue("OnlineResource")), format, markIndex);
            }
            else if (node.hasChild("InlineContent")) {
                Icon ic = (Icon) node.getChildValue("InlineContent");
                emark = styleFactory.externalMark(ic);
                emark.setFormat((String) node.getChildValue("Format"));
            }
           
            mark.setExternalMark(emark);
        }
View Full Code Here

TOP

Related Classes of org.geotools.styling.ExternalMark

Copyright © 2018 www.massapicom. 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.