Examples of literalExpression()


Examples of org.geotools.styling.StyleBuilder.literalExpression()

            symbolizer.setStroke(stroke);
        }

        Color c = lineColourEditor.getColor();

        stroke.setWidth(styleBuilder.literalExpression(lineWidth.getSelection()));
        stroke.setColor(styleBuilder.colorExpression(c));
        stroke.setOpacity(styleBuilder.literalExpression(lineOpacity.getSelection()
                / opacityMaxValueFloat));
        stroke.setLineJoin(styleBuilder.literalExpression(linejoinCombo.getText()));
        stroke.setLineCap(styleBuilder.literalExpression(linecapCombo.getText()));
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

        Color c = lineColourEditor.getColor();

        stroke.setWidth(styleBuilder.literalExpression(lineWidth.getSelection()));
        stroke.setColor(styleBuilder.colorExpression(c));
        stroke.setOpacity(styleBuilder.literalExpression(lineOpacity.getSelection()
                / opacityMaxValueFloat));
        stroke.setLineJoin(styleBuilder.literalExpression(linejoinCombo.getText()));
        stroke.setLineCap(styleBuilder.literalExpression(linecapCombo.getText()));

//      TODO: This functionality to be added later with a better UI...goes with other task
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

        stroke.setWidth(styleBuilder.literalExpression(lineWidth.getSelection()));
        stroke.setColor(styleBuilder.colorExpression(c));
        stroke.setOpacity(styleBuilder.literalExpression(lineOpacity.getSelection()
                / opacityMaxValueFloat));
        stroke.setLineJoin(styleBuilder.literalExpression(linejoinCombo.getText()));
        stroke.setLineCap(styleBuilder.literalExpression(linecapCombo.getText()));

//      TODO: This functionality to be added later with a better UI...goes with other task
//        if (!lineDashText.getText().equalsIgnoreCase("")
//                && !lineSpaceText.getText().equalsIgnoreCase("")) {
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

        stroke.setWidth(styleBuilder.literalExpression(lineWidth.getSelection()));
        stroke.setColor(styleBuilder.colorExpression(c));
        stroke.setOpacity(styleBuilder.literalExpression(lineOpacity.getSelection()
                / opacityMaxValueFloat));
        stroke.setLineJoin(styleBuilder.literalExpression(linejoinCombo.getText()));
        stroke.setLineCap(styleBuilder.literalExpression(linecapCombo.getText()));

//      TODO: This functionality to be added later with a better UI...goes with other task
//        if (!lineDashText.getText().equalsIgnoreCase("")
//                && !lineSpaceText.getText().equalsIgnoreCase("")) {
//            float dash = Float.parseFloat(lineDashText.getText());
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

        RGB colour = markerColour.getColorValue();
        if (markerEnabled.getSelection()) {
            mark[0].setFill(styleBuilder
                    .createFill(new Color(colour.red, colour.green, colour.blue)));
            mark[0].getFill().setOpacity(
                    styleBuilder.literalExpression(markerOpacity.getSelection()
                            / opacityMaxValueFloat));
        } else {
            mark[0].setFill(null);
        }
        colour = borderColour.getColorValue();
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

                            / opacityMaxValueFloat));
        } else {
            mark[0].setFill(null);
        }
        colour = borderColour.getColorValue();
        g.setSize(styleBuilder.literalExpression(new Integer(markerWidth.getSelection())
                .doubleValue()));
        colour = borderColour.getColorValue();
        if (borderEnabled.getSelection()) {
            mark[0].setStroke(styleBuilder.createStroke(new Color(colour.red, colour.green,
                    colour.blue), (new Integer(borderWidth.getSelection())).doubleValue()));
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

        colour = borderColour.getColorValue();
        if (borderEnabled.getSelection()) {
            mark[0].setStroke(styleBuilder.createStroke(new Color(colour.red, colour.green,
                    colour.blue), (new Integer(borderWidth.getSelection())).doubleValue()));
            mark[0].getStroke().setOpacity(
                    styleBuilder.literalExpression(borderOpacity.getSelection()
                            / opacityMaxValueFloat));
        } else {
            mark[0].setStroke(null);
        }
        g.setMarks(mark);
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

    public void apply() {
        RasterSymbolizer symbolizer = (RasterSymbolizer) getContent();
        StyleBuilder styleBuilder = getStyleBuilder();

        double opacity = ((double) opacityScale.getSelection()) / 100;
        symbolizer.setOpacity(styleBuilder.literalExpression(opacity));
    }
}
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

                    Expression fromColorExpr = sB.colorExpression(new java.awt.Color(fromColor.getRed(), fromColor.getGreen(),
                            fromColor.getBlue(), 255));
                    Expression toColorExpr = sB.colorExpression(new java.awt.Color(toColor.getRed(), toColor.getGreen(), toColor
                            .getBlue(), 255));
                    Expression fromExpr = sB.literalExpression(values[0]);
                    Expression toExpr = sB.literalExpression(values[1]);
                    Expression opacityExpr = sB.literalExpression(opacity);

                    ColorMapEntry entry = sf.createColorMapEntry();
                    entry.setQuantity(fromExpr);
View Full Code Here

Examples of org.geotools.styling.StyleBuilder.literalExpression()

                    Expression fromColorExpr = sB.colorExpression(new java.awt.Color(fromColor.getRed(), fromColor.getGreen(),
                            fromColor.getBlue(), 255));
                    Expression toColorExpr = sB.colorExpression(new java.awt.Color(toColor.getRed(), toColor.getGreen(), toColor
                            .getBlue(), 255));
                    Expression fromExpr = sB.literalExpression(values[0]);
                    Expression toExpr = sB.literalExpression(values[1]);
                    Expression opacityExpr = sB.literalExpression(opacity);

                    ColorMapEntry entry = sf.createColorMapEntry();
                    entry.setQuantity(fromExpr);
                    entry.setColor(fromColorExpr);
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.