Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Expression.evaluate()


                        if (initialGapExpression != null)
                            initialGap = initialGapExpression.evaluate(null, String.class);

                        Expression perpendicularOffsetExpression = linePlacement.getPerpendicularOffset();
                        if (perpendicularOffset != null)
                            perpendicularOffset = perpendicularOffsetExpression.evaluate(null, String.class);
                    }
                }
                break;
            default:
                break;
View Full Code Here


                FilterFunction_offset offsetFunction = (FilterFunction_offset) geometry;
                List parameters = offsetFunction.getParameters();
                Expression xOffsetExpr = (Expression) parameters.get(1);
                Expression yOffsetExpr = (Expression) parameters.get(2);
                Double xOffsetDouble = xOffsetExpr.evaluate(null, Double.class);
                Double yOffsetDouble = yOffsetExpr.evaluate(null, Double.class);
                if (xOffsetDouble != null && yOffsetDouble != null) {
                    Point2D.Double point = new Point2D.Double(xOffsetDouble, yOffsetDouble);
                    return point;
                }
            }
View Full Code Here

                String name = fd.getName();
                String style = String.valueOf(fd.getStyle());
                String height = String.valueOf(fd.getHeight());
                Color color = fontEditor.getAWTColor();
                Expression colorExpr = ff.literal(color);
                String fontColor = colorExpr.evaluate(null, String.class);

                notifyListeners(new String[]{name, style, height, fontColor}, false, STYLEEVENTTYPE.LABELFONT);
            }
        } else if (source.equals(fontColorButton)) {
            Color color = fontColorEditor.getColor();
View Full Code Here

                notifyListeners(new String[]{name, style, height, fontColor}, false, STYLEEVENTTYPE.LABELFONT);
            }
        } else if (source.equals(fontColorButton)) {
            Color color = fontColorEditor.getColor();
            Expression colorExpr = ff.literal(color);
            String fontColor = colorExpr.evaluate(null, String.class);

            notifyListeners(fontColor, false, STYLEEVENTTYPE.LABELCOLOR);
        } else if (source.equals(haloColorButton)) {
            Color color = haloColorEditor.getColor();
            Expression colorExpr = ff.literal(color);
View Full Code Here

            notifyListeners(fontColor, false, STYLEEVENTTYPE.LABELCOLOR);
        } else if (source.equals(haloColorButton)) {
            Color color = haloColorEditor.getColor();
            Expression colorExpr = ff.literal(color);
            String haloColor = colorExpr.evaluate(null, String.class);

            notifyListeners(haloColor, false, STYLEEVENTTYPE.LABELHALOCOLOR);
        } else if (source.equals(haloRadiusSpinner)) {
            int radius = haloRadiusSpinner.getSelection();
View Full Code Here

            }

            stroke = mark.getStroke();
            if (stroke != null) {
                Expression color = stroke.getColor();
                tmp = color.evaluate(null, String.class);
                if (tmp != null) {
                    strokeColor = tmp;
                } else {
                    strokeColor = DEFAULT_COLOR;
                }
View Full Code Here

        } else if (source.equals(fillColorButton) || source.equals(fillColorAttributecombo)) {
            boolean comboIsNone = comboIsNone(fillColorAttributecombo);
            if (comboIsNone) {
                Color color = fillColorEditor.getColor();
                Expression colorExpr = ff.literal(color);
                String fillColor = colorExpr.evaluate(null, String.class);
                notifyListeners(fillColor, false, STYLEEVENTTYPE.FILLCOLOR);
            } else {
                int index = fillColorAttributecombo.getSelectionIndex();
                String field = fillColorAttributecombo.getItem(index);
                if (field.length() == 0) {
View Full Code Here

        value = selection / Math.pow(10, digits);
        String strokeSize = String.valueOf(value);

        Color color = wkmColorEditor.getColor();
        Expression colorExpr = ff.literal(color);
        String strokeColor = colorExpr.evaluate(null, String.class);

        notifyListeners(new String[]{name, strokeWidth, strokeColor, strokeSize}, false, STYLEEVENTTYPE.WKMGRAPHICSFILL);
    }

}
View Full Code Here

            boolean selected = fillEnableButton.getSelection();
            notifyListeners(String.valueOf(selected), false, STYLEEVENTTYPE.FILLENABLE);
        } else if (source.equals(fillColorButton)) {
            Color color = fillColorEditor.getColor();
            Expression colorExpr = ff.literal(color);
            String fillColor = colorExpr.evaluate(null, String.class);
            notifyListeners(fillColor, false, STYLEEVENTTYPE.FILLCOLOR);
        } else if (source.equals(fillOpacitySpinner) || source.equals(fillOpacityAttributecombo)) {
            boolean comboIsNone = comboIsNone(fillOpacityAttributecombo);
            if (comboIsNone) {
                int opacity = fillOpacitySpinner.getSelection();
View Full Code Here

                notifyListeners(field, true, STYLEEVENTTYPE.BORDERWIDTH);
            }
        } else if (source.equals(borderColorButton)) {
            Color color = borderColorEditor.getColor();
            Expression colorExpr = ff.literal(color);
            String strokeColor = colorExpr.evaluate(null, String.class);
            notifyListeners(strokeColor, false, STYLEEVENTTYPE.BORDERCOLOR);
        } else if (source.equals(borderOpacitySpinner) || source.equals(borderOpacityAttributecombo)) {
            boolean comboIsNone = comboIsNone(borderOpacityAttributecombo);
            if (comboIsNone) {
                int opacity = borderOpacitySpinner.getSelection();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.