Search in sources :

Example 11 with StyleXmlIO

use of org.geotoolkit.sld.xml.StyleXmlIO in project geotoolkit by Geomatys.

the class PieSymbolizer method setValue.

public void setValue(Expression valueExp) {
    this.valueExp = valueExp;
    final StyleXmlIO util = new StyleXmlIO();
    this.value = util.getTransformerXMLv110().visitExpression(valueExp);
}
Also used : StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO)

Example 12 with StyleXmlIO

use of org.geotoolkit.sld.xml.StyleXmlIO in project geotoolkit by Geomatys.

the class PieSymbolizer method setSize.

public void setSize(Expression pieSize) {
    this.pieSize = pieSize;
    final StyleXmlIO util = new StyleXmlIO();
    this.size = util.getTransformerXMLv110().visitExpression(pieSize);
}
Also used : StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO)

Example 13 with StyleXmlIO

use of org.geotoolkit.sld.xml.StyleXmlIO in project geotoolkit by Geomatys.

the class PieSymbolizer method setQuarter.

public void setQuarter(Expression quarterExp) {
    this.quarterExp = quarterExp;
    final StyleXmlIO util = new StyleXmlIO();
    this.quarter = util.getTransformerXMLv110().visitExpression(quarterExp);
}
Also used : StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO)

Example 14 with StyleXmlIO

use of org.geotoolkit.sld.xml.StyleXmlIO in project geotoolkit by Geomatys.

the class PieSymbolizer method setGroup.

public void setGroup(Expression groupExp) {
    this.groupExp = groupExp;
    final StyleXmlIO util = new StyleXmlIO();
    this.group = util.getTransformerXMLv110().visitExpression(groupExp);
}
Also used : StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO)

Example 15 with StyleXmlIO

use of org.geotoolkit.sld.xml.StyleXmlIO in project geotoolkit by Geomatys.

the class IsolineSymbolizer method setTextSymbolizer.

public void setTextSymbolizer(TextSymbolizer textSymbolizer) {
    this.textSymbolizer = textSymbolizer;
    if (textSymbolizer != null) {
        final StyleXmlIO util = new StyleXmlIO();
        this.textSymbolizerType = util.getTransformerXMLv110().visit(textSymbolizer, null).getValue();
    }
}
Also used : StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO)

Aggregations

StyleXmlIO (org.geotoolkit.sld.xml.StyleXmlIO)21 Test (org.junit.Test)6 MutableStyle (org.geotoolkit.style.MutableStyle)5 Path (java.nio.file.Path)4 List (java.util.List)3 Expression (org.opengis.filter.Expression)3 File (java.io.File)2 ArrayList (java.util.ArrayList)2 JAXBElement (javax.xml.bind.JAXBElement)2 JAXBException (javax.xml.bind.JAXBException)2 ContentType (org.geotoolkit.owc.xml.v10.ContentType)2 StyleSetType (org.geotoolkit.owc.xml.v10.StyleSetType)2 UserStyle (org.geotoolkit.sld.xml.v110.UserStyle)2 BufferedImage (java.awt.image.BufferedImage)1 IOException (java.io.IOException)1 LinkedHashMap (java.util.LinkedHashMap)1 Icon (javax.swing.Icon)1 ImageIcon (javax.swing.ImageIcon)1 Envelope2D (org.apache.sis.geometry.Envelope2D)1 MapLayer (org.apache.sis.portrayal.MapLayer)1