Search in sources :

Example 1 with XMLFieldConfigEnumValue

use of com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue in project sldeditor by robward-scisys.

the class ReadMapUnits method readValueListConfig.

/**
 * Read value list configuration.
 *
 * @param localisationClass the localisation class
 * @param panelId the panel id
 * @param valueList the xml value obj
 * @return the list
 */
private List<SymbolTypeConfig> readValueListConfig(Class<?> localisationClass, Class<?> panelId, XMLFieldConfigEnumValueList valueList) {
    List<SymbolTypeConfig> configList = new ArrayList<SymbolTypeConfig>();
    for (XMLFieldConfigEnumValue valueObj : valueList.getValue()) {
        SymbolTypeConfig config = parseSymbolTypeConfig(localisationClass, panelId, valueObj);
        configList.add(config);
    }
    return configList;
}
Also used : XMLFieldConfigEnumValue(com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue) ArrayList(java.util.ArrayList) SymbolTypeConfig(com.sldeditor.ui.detail.config.symboltype.SymbolTypeConfig)

Example 2 with XMLFieldConfigEnumValue

use of com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue in project sldeditor by robward-scisys.

the class SymbolTypeConfigReader method readSymbolizerConfig.

/**
 * Read symbolizer config.
 *
 * @param panelId the panel id
 * @param xmlPanelDetails the xml panel details
 * @return the symbol type config
 */
private static List<SymbolTypeConfig> readSymbolizerConfig(Class<?> panelId, XMLPanelDetails xmlPanelDetails) {
    List<SymbolTypeConfig> configList = new ArrayList<SymbolTypeConfig>();
    for (XMLFieldConfigEnumValue value : xmlPanelDetails.getValue()) {
        SymbolTypeConfig config = ReadPanelConfig.parseSymbolTypeConfig(SymbolTypeConfig.class, panelId, value);
        configList.add(config);
    }
    return configList;
}
Also used : XMLFieldConfigEnumValue(com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue) ArrayList(java.util.ArrayList) XMLSymbolTypeConfig(com.sldeditor.common.xml.ui.XMLSymbolTypeConfig)

Example 3 with XMLFieldConfigEnumValue

use of com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue in project sldeditor by robward-scisys.

the class ReadPanelConfig method readValueListConfig.

/**
 * Read value list configuration.
 *
 * @param localisationClass the localisation class
 * @param panelId the panel id
 * @param valueList the xml value obj
 * @return the list
 */
private List<SymbolTypeConfig> readValueListConfig(Class<?> localisationClass, Class<?> panelId, XMLFieldConfigEnumValueList valueList) {
    List<SymbolTypeConfig> configList = new ArrayList<SymbolTypeConfig>();
    for (XMLFieldConfigEnumValue valueObj : valueList.getValue()) {
        SymbolTypeConfig config = parseSymbolTypeConfig(localisationClass, panelId, valueObj);
        configList.add(config);
    }
    return configList;
}
Also used : XMLFieldConfigEnumValue(com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue) ArrayList(java.util.ArrayList) SymbolTypeConfig(com.sldeditor.ui.detail.config.symboltype.SymbolTypeConfig)

Aggregations

XMLFieldConfigEnumValue (com.sldeditor.common.xml.ui.XMLFieldConfigEnumValue)3 ArrayList (java.util.ArrayList)3 SymbolTypeConfig (com.sldeditor.ui.detail.config.symboltype.SymbolTypeConfig)2 XMLSymbolTypeConfig (com.sldeditor.common.xml.ui.XMLSymbolTypeConfig)1