Examples of accept()


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

        cme.setColor(sb.colorExpression(Color.YELLOW));
        cme.setLabel("thelabel");
        cme.setQuantity(sb.literalExpression(66.66));
        cme.setOpacity(sb.literalExpression(0.77));

        cme.accept(visitor);

        ColorMapEntry cme2 = (ColorMapEntry) visitor.getCopy();

        assertEquals("Colormaps LABEL must be equal after duplication ", cme.getLabel(), cme2
                .getLabel());
View Full Code Here

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

        ContrastEnhancement ce = sf.createContrastEnhancement();
        ce.setGammaValue(sb.literalExpression(0.5));
        ce.setMethod(ContrastMethod.HISTOGRAM);
        ce.setHistogram();
        ce.accept(visitor);
        ContrastEnhancement ce2 = (ContrastEnhancement) visitor.getCopy();

        assertEquals("Gamma value incorrest after duplication", ((Literal)ce.getGammaValue()).getValue(), ((Literal)ce2.getGammaValue()).getValue());
        assertEquals("ContrastMethod must be equal after duplication ", ce.getMethod(), ce2.getMethod());
        assertEquals("Contrast Type must be equal after duplication ", ((Literal)ce.getType()).getValue()((Literal)ce2.getType()).getValue());
View Full Code Here

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

    public void testDisplacement() {
        Displacement displacement = sf.createDisplacement(ff.literal(1),
                ff.literal(2));
       
        displacement.accept(visitor);
        Displacement clone = (Displacement) visitor.getCopy();
        assertCopy(displacement, clone);

        Displacement other = sf.createDisplacement(ff.literal(3),
                ff.literal(4));
View Full Code Here

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

        public void visit( Graphic gr ) {
            List<GraphicalSymbol> graphicalSymbols = gr.graphicalSymbols();
            for( GraphicalSymbol graphicalSymbol : graphicalSymbols ) {
                if (graphicalSymbol instanceof ExternalGraphic) {
                    ExternalGraphic ext = (ExternalGraphic) graphicalSymbol;
                    ext.accept(this);
                }
            }
        }

        public void visit( Mark mark ) {}
View Full Code Here

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

        rule2.setIsElseFilter(true);
        rule2.setName("rule2");
        fts.addRule(rule1);
        fts.addRule(rule2);

        fts.accept( visitor );
        FeatureTypeStyle clone = (FeatureTypeStyle) visitor.getCopy();
        //assertClone(fts, clone);
        assertEqualsContract( fts, clone );
       
        rule1 = sf.createRule();
View Full Code Here

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

    }

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

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

        }

        public void visit( Fill fill ) {
            Graphic graphicFill = fill.getGraphicFill();
            if (graphicFill != null) {
                graphicFill.accept(this);
            }
        }

        public void visit( Stroke stroke ) {
            Graphic graphicFill = stroke.getGraphicFill();
View Full Code Here

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

    public void testHalo() {
        Halo halo = sf.createHalo(sf.getDefaultFill(),
                ff.literal(10));
       
        halo.accept(visitor);
        Halo clone = (Halo) visitor.getCopy();
       
        assertCopy(halo, clone);

        Halo other = sf.createHalo(sf.getDefaultFill(),
View Full Code Here

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

    }

    public void testLinePlacement() throws Exception {
        LinePlacement linePlacement = sf.createLinePlacement(ff.literal(12));
       
        linePlacement.accept(visitor);
        LinePlacement clone = (LinePlacement) visitor.getCopy();;
       
        assertCopy(linePlacement, clone);

        LinePlacement other = sf.createLinePlacement(ff.property("NAME"));
View Full Code Here

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

            PolygonSymbolizer ps = (PolygonSymbolizer) arg0;
            ps.accept(this);
        }
        if (arg0 instanceof LineSymbolizer) {
            LineSymbolizer ps = (LineSymbolizer) arg0;
            ps.accept(this);
        }
        if (arg0 instanceof TextSymbolizer) {
            TextSymbolizer ps = (TextSymbolizer) arg0;
            ps.accept(this);
        }
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.