Search in sources :

Example 11 with FilterConfigInterface

use of com.sldeditor.filter.v2.function.FilterConfigInterface in project sldeditor by robward-scisys.

the class FilterPanelv2 method populateFilter.

/**
 * Populate filter.
 *
 * @param node the node
 * @param filter the filter
 */
private void populateFilter(FilterNode node, Filter filter) {
    FilterConfigInterface filterConfig = null;
    if (filter != null) {
        filterConfig = FilterManager.getInstance().getFilterConfig(filter);
    }
    node.setFilter(filter, filterConfig);
    // This notifies the listeners and changes the GUI
    model.reload();
    displayResult();
}
Also used : FilterConfigInterface(com.sldeditor.filter.v2.function.FilterConfigInterface)

Aggregations

FilterConfigInterface (com.sldeditor.filter.v2.function.FilterConfigInterface)9 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)5 Filter (org.opengis.filter.Filter)5 Expression (org.opengis.filter.expression.Expression)4 IsLike (com.sldeditor.filter.v2.function.misc.IsLike)3 IsNull (com.sldeditor.filter.v2.function.misc.IsNull)3 BinaryComparisonAbstract (org.geotools.filter.BinaryComparisonAbstract)3 LogicFilterImpl (org.geotools.filter.LogicFilterImpl)3 Not (org.opengis.filter.Not)3 PropertyIsBetween (org.opengis.filter.PropertyIsBetween)3 PropertyIsLike (org.opengis.filter.PropertyIsLike)3 PropertyIsNull (org.opengis.filter.PropertyIsNull)3 BinarySpatialOperator (org.opengis.filter.spatial.BinarySpatialOperator)3 BinaryTemporalOperator (org.opengis.filter.temporal.BinaryTemporalOperator)3 FilterName (com.sldeditor.filter.v2.function.FilterName)2 Overlaps (com.sldeditor.filter.v2.function.geometry.Overlaps)2 And (com.sldeditor.filter.v2.function.logic.And)2 IsBetween (com.sldeditor.filter.v2.function.property.IsBetween)2 IsGreaterThan (com.sldeditor.filter.v2.function.property.IsGreaterThan)2