Search in sources :

Example 6 with VendorOptionPresent

use of com.sldeditor.common.vendoroption.minversion.VendorOptionPresent in project sldeditor by robward-scisys.

the class VOGeoServerFTSComposite method getMinimumVersion.

/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.ui.iface.PopulateDetailsInterface#getMinimumVersion(java.lang.Object,
     * java.util.List)
     */
@Override
public void getMinimumVersion(Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (sldObj instanceof FeatureTypeStyle) {
        FeatureTypeStyle fts = (FeatureTypeStyle) sldObj;
        Map<String, String> options = fts.getOptions();
        if (options.containsKey(FeatureTypeStyle.COMPOSITE)) {
            VendorOptionPresent voPresent = new VendorOptionPresent(sldObj, getVendorOptionInfo());
            vendorOptionsPresentList.add(voPresent);
        }
    }
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent) FeatureTypeStyle(org.geotools.styling.FeatureTypeStyle)

Example 7 with VendorOptionPresent

use of com.sldeditor.common.vendoroption.minversion.VendorOptionPresent in project sldeditor by robward-scisys.

the class VOGeoServerFTSCompositeBase method getMinimumVersion.

/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.ui.iface.PopulateDetailsInterface#getMinimumVersion(java.lang.Object,
     * java.util.List)
     */
@Override
public void getMinimumVersion(Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (sldObj instanceof FeatureTypeStyle) {
        FeatureTypeStyle fts = (FeatureTypeStyle) sldObj;
        Map<String, String> options = fts.getOptions();
        if (options.containsKey(FeatureTypeStyle.COMPOSITE_BASE)) {
            VendorOptionPresent voPresent = new VendorOptionPresent(sldObj, getVendorOptionInfo());
            vendorOptionsPresentList.add(voPresent);
        }
    }
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent) FeatureTypeStyle(org.geotools.styling.FeatureTypeStyle)

Example 8 with VendorOptionPresent

use of com.sldeditor.common.vendoroption.minversion.VendorOptionPresent in project sldeditor by robward-scisys.

the class VOGeoServerRandomFill method getMinimumVersion.

/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.ui.iface.PopulateDetailsInterface#getMinimumVersion(java.lang.Object,
     * java.util.List)
     */
@Override
public void getMinimumVersion(Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (parentObj instanceof PolygonSymbolizer) {
        PolygonSymbolizer polygon = (PolygonSymbolizer) parentObj;
        Map<String, String> options = polygon.getOptions();
        for (FieldIdEnum key : fieldMap.keySet()) {
            String vendorOptionAttributeKey = fieldMap.get(key);
            if (options.containsKey(vendorOptionAttributeKey)) {
                VendorOptionPresent voPresent = new VendorOptionPresent(sldObj, getVendorOptionInfo());
                vendorOptionsPresentList.add(voPresent);
            }
        }
    }
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent) PolygonSymbolizer(org.geotools.styling.PolygonSymbolizer) FieldIdEnum(com.sldeditor.common.xml.ui.FieldIdEnum)

Example 9 with VendorOptionPresent

use of com.sldeditor.common.vendoroption.minversion.VendorOptionPresent in project sldeditor by robward-scisys.

the class FieldConfigArrow method getMinimumVersion.

/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.ui.detail.config.symboltype.FieldState#getMinimumVersion(java.lang.Object, java.util.List)
     */
@Override
public void getMinimumVersion(Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    VendorOptionPresent voPresent = new VendorOptionPresent(sldObj, getVendorOptionInfo());
    vendorOptionsPresentList.add(voPresent);
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent)

Example 10 with VendorOptionPresent

use of com.sldeditor.common.vendoroption.minversion.VendorOptionPresent in project sldeditor by robward-scisys.

the class FieldConfigMarkerExtShape method getMinimumVersion.

/*
     * (non-Javadoc)
     * 
     * @see com.sldeditor.ui.detail.config.symboltype.FieldState#getMinimumVersion(java.lang.Object, java.util.List)
     */
@Override
public void getMinimumVersion(Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    VendorOptionPresent voPresent = new VendorOptionPresent(sldObj, getVendorOptionInfo());
    vendorOptionsPresentList.add(voPresent);
}
Also used : VendorOptionPresent(com.sldeditor.common.vendoroption.minversion.VendorOptionPresent)

Aggregations

VendorOptionPresent (com.sldeditor.common.vendoroption.minversion.VendorOptionPresent)22 FeatureTypeStyle (org.geotools.styling.FeatureTypeStyle)10 Test (org.junit.Test)8 ArrayList (java.util.ArrayList)7 StyleFactoryImpl (org.geotools.styling.StyleFactoryImpl)6 VendorOptionVersion (com.sldeditor.common.vendoroption.VendorOptionVersion)4 FieldIdEnum (com.sldeditor.common.xml.ui.FieldIdEnum)4 FeatureTypeStyleDetails (com.sldeditor.ui.detail.FeatureTypeStyleDetails)3 File (java.io.File)3 PolygonSymbolizer (org.geotools.styling.PolygonSymbolizer)3 TextSymbolizer (org.geotools.styling.TextSymbolizer)3 TextSymbolizerDetails (com.sldeditor.ui.detail.TextSymbolizerDetails)2 VOGeoServerFTSComposite (com.sldeditor.ui.detail.vendor.geoserver.featuretypestyle.VOGeoServerFTSComposite)2 GetMinimumVersionInterface (com.sldeditor.ui.panels.GetMinimumVersionInterface)2 MalformedURLException (java.net.MalformedURLException)2 Graphic (org.geotools.styling.Graphic)2 OtherText (org.geotools.styling.OtherText)2 OtherTextImpl (org.geotools.styling.OtherTextImpl)2 RasterSymbolizer (org.geotools.styling.RasterSymbolizer)2 TextSymbolizer2 (org.geotools.styling.TextSymbolizer2)2