org.opengis.filter.expression.Subtract Java Examples

The following examples show how to use org.opengis.filter.expression.Subtract. 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: MathsExpressionPanel.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Sets the maths expression.
 *
 * @param expression the new maths expression
 */
public void setExpression(Expression expression) {
    String selectedItem = null;

    if (expression instanceof Add) {
        selectedItem = ADD;
    } else if (expression instanceof Subtract) {
        selectedItem = SUBTRACT;
    } else if (expression instanceof Multiply) {
        selectedItem = MULTIPLY;
    } else if (expression instanceof Divide) {
        selectedItem = DIVIDE;
    }

    if (selectedItem != null) {
        comboBox.setSelectedItem(selectedItem);
    } else {
        comboBox.setSelectedIndex(-1);
    }
}
 
Example #2
Source File: FilterToElastic.java    From elasticgeo with GNU General Public License v3.0 4 votes vote down vote up
public Object visit(Subtract expression, Object extraData) {
    throw new UnsupportedOperationException("Subtract expressions not supported");
}
 
Example #3
Source File: ExtractGeometryFilterVisitor.java    From geowave with Apache License 2.0 4 votes vote down vote up
@Override
public Object visit(final Subtract expression, final Object data) {
  return new ExtractGeometryFilterVisitorResult(infinity(), null);
}
 
Example #4
Source File: ExtractTimeFilterVisitor.java    From geowave with Apache License 2.0 4 votes vote down vote up
@Override
public Object visit(final Subtract expression, final Object data) {
  return expression.accept(this, data);
}