Package org.geotools.styling

Examples of org.geotools.styling.Stroke.accept()


    }

    public void visit( LineSymbolizer arg0 ) {
        Stroke stroke = arg0.getStroke();
        if( stroke!=null )
            stroke.accept(this);
    }

    public void visit( PolygonSymbolizer arg0 ) {
        Fill fill = arg0.getFill();
        if (fill != null)
View Full Code Here


        Fill fill = arg0.getFill();
        if (fill != null)
            fill.accept(this);
        Stroke stroke = arg0.getStroke();
        if( stroke!=null )
            stroke.accept(this);
    }

    public void visit( TextSymbolizer arg0 ) {
        Fill fill = arg0.getFill();
        if (fill != null)
View Full Code Here

        if (fill != null)
            fill.accept(this);

        Stroke stroke = arg0.getStroke();
        if( stroke!=null )
            stroke.accept(this);
    }

    public void visit( ExternalGraphic arg0 ) {
        // nothing
    }
View Full Code Here

        }

        public void visit( LineSymbolizer line ) {
            Stroke stroke = line.getStroke();
            if (stroke != null) {
                stroke.accept(this);
            }
        }

        public void visit( PolygonSymbolizer poly ) {
            Stroke stroke = poly.getStroke();
View Full Code Here

        }

        public void visit( PolygonSymbolizer poly ) {
            Stroke stroke = poly.getStroke();
            if (stroke != null) {
                stroke.accept(this);
            }
            Fill fill = poly.getFill();
            if (fill != null) {
                fill.accept(this);
            }
View Full Code Here

    }
   
    @Test
    public void testStroke() throws Exception {
        Stroke original = sb.createStroke(Color.RED, 2, new float[] {5, 10});
        original.accept(visitor);
        Stroke clone = (Stroke) visitor.getCopy();
       
        assertEquals(4.0d, clone.getWidth().evaluate(null, Double.class), 0d);
        assertEquals(10.0f, clone.getDashArray()[0], 0d);
        assertEquals(20.0f, clone.getDashArray()[1], 0d);
View Full Code Here

   
    @Test
    public void testRescaleLocalUOM() throws Exception {
        Stroke original = sb.createStroke(Color.RED, 2, new float[] {5, 10});
        original.setWidth(ff.literal("2m"));
        original.accept(visitor);
        Stroke clone = (Stroke) visitor.getCopy();
       
        assertEquals("4m", clone.getWidth().evaluate(null, String.class));
    }
   
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.