Examples of DefaultMapContext


Examples of org.geotools.map.DefaultMapContext

    public void testPartialPointLabelNo() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialPointLabelNo.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_point, style);

        renderer.setContext(mc);
        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPointLabelFalse() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialPointLabelFalse.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_point, style);

        renderer.setContext(mc);
        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialPointLabelTrue() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialPointLabelTrue.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_point, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.BLACK);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialLineLabelNo() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialLineLabelNo.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_line, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,155, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialLineLabelFalse() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialLineLabelFalse.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_line, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,155, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialLineLabelTrue() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialLineLabelTrue.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_line, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 150,0, Color.BLACK,30);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialAreaLabelNo() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialAreaLabelNo.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_area, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialAreaLabelFalse() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialAreaLabelFalse.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_area, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.WHITE);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

    public void testPartialAreaLabelTrue() throws Exception {
        //System.setProperty("java.awt.headless", "false");
        Thread.sleep(1000);
        Style style = RendererBaseTest.loadStyle(this, "partialAreaLabelTrue.sld");

        DefaultMapContext mc = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mc.addLayer(fs_area, style);

        renderer.setContext(mc);

        final BufferedImage image = RendererBaseTest.renderImage(renderer, bounds, null);
        RendererBaseTest.assertPixel(image, 282,152, Color.BLACK);
View Full Code Here

Examples of org.geotools.map.DefaultMapContext

        expect(fs.getSchema()).andReturn(testLineFeatureType).anyTimes();
        expect(fs.getSupportedHints()).andReturn(new HashSet()).anyTimes();
        replay(fs);
       
        // build map context
        MapContext mapContext = new DefaultMapContext(DefaultGeographicCRS.WGS84);
        mapContext.addLayer(fs, createLineStyle());
       
        // setup the renderer and listen for errors
        final StreamingRenderer sr = new StreamingRenderer();
        sr.setContext(mapContext);
        sr.addRenderListener(new RenderListener() {
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.