Java Code Examples for org.geotools.styling.TextSymbolizer#getOptions()

The following examples show how to use org.geotools.styling.TextSymbolizer#getOptions() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VOGeoServerLabelling.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Update symbol.
 *
 * @param textSymbolizer the text symbolizer
 */
/*
 * (non-Javadoc)
 *
 * @see
 * com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface#updateSymbol(org.geotools.
 * styling.TextSymbolizer)
 */
@Override
public void updateSymbol(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalUpdateSymbol(options, entry.getKey(), entry.getValue());
        }
    }
}
 
Example 2
Source File: VOGeoServerLabelling.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void getMinimumVersion(
        Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (sldObj instanceof TextSymbolizer) {
        TextSymbolizer textSymbolizer = (TextSymbolizer) sldObj;
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            String vendorOptionAttributeKey = entry.getValue();

            if (options.containsKey(vendorOptionAttributeKey)) {
                VendorOptionPresent voPresent =
                        new VendorOptionPresent(sldObj, getVendorOptionInfo());

                if (vendorOptionsPresentList != null) {
                    if (!vendorOptionsPresentList.contains(voPresent)) {
                        vendorOptionsPresentList.add(voPresent);
                    }
                }
            }
        }
    }
}
 
Example 3
Source File: VOGeoServerLabellingUnderline.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Populate.
 *
 * @param textSymbolizer the text symbolizer
 */
/*
 * (non-Javadoc)
 *
 * @see
 * com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface#populate(org.geotools.styling.
 * TextSymbolizer)
 */
@Override
public void populate(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalPopulate(options, entry.getKey(), entry.getValue());
        }
    }
}
 
Example 4
Source File: VOGeoServerLabellingUnderline.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Update symbol.
 *
 * @param textSymbolizer the text symbolizer
 */
/*
 * (non-Javadoc)
 *
 * @see
 * com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface#updateSymbol(org.geotools.
 * styling.TextSymbolizer)
 */
@Override
public void updateSymbol(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalUpdateSymbol(options, entry.getKey(), entry.getValue());
        }
    }
}
 
Example 5
Source File: VOGeoServerLabellingUnderline.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void getMinimumVersion(
        Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (sldObj instanceof TextSymbolizer) {
        TextSymbolizer textSymbolizer = (TextSymbolizer) sldObj;
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            String vendorOptionAttributeKey = entry.getValue();

            if (options.containsKey(vendorOptionAttributeKey)) {
                VendorOptionPresent voPresent =
                        new VendorOptionPresent(sldObj, getVendorOptionInfo());

                if (vendorOptionsPresentList != null) {
                    vendorOptionsPresentList.add(voPresent);
                }
            }
        }
    }
}
 
Example 6
Source File: VOGeoServerTextSpacing.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Populate.
 *
 * @param textSymbolizer the text symbolizer
 */
/*
 * (non-Javadoc)
 *
 * @see
 * com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface#populate(org.geotools.styling.
 * TextSymbolizer)
 */
@Override
public void populate(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalPopulate(options, entry.getKey(), entry.getValue());
        }
    }
}
 
Example 7
Source File: VOGeoServerTextSpacing.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Update symbol.
 *
 * @param textSymbolizer the text symbolizer
 */
/*
 * (non-Javadoc)
 *
 * @see
 * com.sldeditor.ui.detail.vendor.geoserver.VendorOptionInterface#updateSymbol(org.geotools.
 * styling.TextSymbolizer)
 */
@Override
public void updateSymbol(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalPopulate(options, entry.getKey(), entry.getValue());
        }
    }
}
 
Example 8
Source File: VOGeoServerTextSpacing.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void getMinimumVersion(
        Object parentObj, Object sldObj, List<VendorOptionPresent> vendorOptionsPresentList) {
    if (sldObj instanceof TextSymbolizer) {
        TextSymbolizer textSymbolizer = (TextSymbolizer) sldObj;
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            String vendorOptionAttributeKey = entry.getValue();

            if (options.containsKey(vendorOptionAttributeKey)) {
                VendorOptionPresent voPresent =
                        new VendorOptionPresent(sldObj, getVendorOptionInfo());

                if (vendorOptionsPresentList != null) {
                    vendorOptionsPresentList.add(voPresent);
                }
            }
        }
    }
}
 
Example 9
Source File: VOGeoServerLabelling.java    From sldeditor with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void populate(TextSymbolizer textSymbolizer) {
    if (textSymbolizer != null) {
        Map<String, String> options = textSymbolizer.getOptions();

        for (Entry<FieldIdEnum, String> entry : fieldMap.entrySet()) {
            internalPopulate(options, entry.getKey(), entry.getValue());
        }
    }
}