Search in sources :

Example 6 with MutableStyleFactory

use of org.geotoolkit.style.MutableStyleFactory in project geotoolkit by Geomatys.

the class IntervalStyleBuilder method createLineTemplate.

public static LineSymbolizer createLineTemplate() {
    final MutableStyleFactory sf = GO2Utilities.STYLE_FACTORY;
    final FilterFactory ff = GO2Utilities.FILTER_FACTORY;
    final Stroke stroke = sf.stroke(Color.BLUE, 2);
    return sf.lineSymbolizer(stroke, null);
}
Also used : Stroke(org.opengis.style.Stroke) MutableStyleFactory(org.geotoolkit.style.MutableStyleFactory) FilterFactory(org.opengis.filter.FilterFactory)

Example 7 with MutableStyleFactory

use of org.geotoolkit.style.MutableStyleFactory in project geotoolkit by Geomatys.

the class IntervalStyleBuilder method createPolygonTemplate.

public static PolygonSymbolizer createPolygonTemplate() {
    final MutableStyleFactory sf = GO2Utilities.STYLE_FACTORY;
    final FilterFactory ff = GO2Utilities.FILTER_FACTORY;
    final Stroke stroke = sf.stroke(Color.BLACK, 1);
    final Fill fill = sf.fill(Color.BLUE);
    return sf.polygonSymbolizer(stroke, fill, null);
}
Also used : Stroke(org.opengis.style.Stroke) Fill(org.opengis.style.Fill) MutableStyleFactory(org.geotoolkit.style.MutableStyleFactory) FilterFactory(org.opengis.filter.FilterFactory)

Aggregations

MutableStyleFactory (org.geotoolkit.style.MutableStyleFactory)7 FilterFactory (org.opengis.filter.FilterFactory)4 Test (org.junit.Test)3 FeatureType (org.opengis.feature.FeatureType)3 Stroke (org.opengis.style.Stroke)3 ArrayList (java.util.ArrayList)2 FeatureTypeBuilder (org.apache.sis.feature.builder.FeatureTypeBuilder)2 MapLayer (org.apache.sis.portrayal.MapLayer)2 DefaultStyleFactory (org.geotoolkit.style.DefaultStyleFactory)2 MutableStyle (org.geotoolkit.style.MutableStyle)2 Feature (org.opengis.feature.Feature)2 Expression (org.opengis.filter.Expression)2 Fill (org.opengis.style.Fill)2 Color (java.awt.Color)1 Dimension (java.awt.Dimension)1 Rectangle (java.awt.Rectangle)1 Shape (java.awt.Shape)1 Path (java.nio.file.Path)1 HashSet (java.util.HashSet)1 LinkedHashMap (java.util.LinkedHashMap)1