Package org.locationtech.udig.filter

Examples of org.locationtech.udig.filter.ComboExpressionViewer


     */
    public void createControl( Composite parent ) {
        parent.setLayout(new GridLayout(2, false));
       
        createLabel(parent, "Stroke Type", "Select the desired stroke type.", 2);
        strokeTypeViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        strokeTypeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1));
        strokeTypeViewer.setOptions(new String[] {"Solid", "Graphic Fill", "Graphic Stroke"});
       
        createLabel(parent, "Width", "Select the Stroke Width");
        widthViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        widthViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL, true, false));
        widthViewer.setOptions(new int[] {1, 2, 3, 5, 10});
       
        createLabel(parent, "Opacity", "Select the Opacity of the stroke");
        opacityViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        opacityViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        opacityViewer.setOptions(new double[] { 0.0, 0.25, 0.5, 0.75, 1.0});
       
        createLabel(parent, "Line Join", "Select the line join method");
        lineJoinViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        lineJoinViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        lineJoinViewer.setOptions(new String[] {"mitre", "round", "bevel"});
       
        createLabel(parent, "Line Cap", "Select the line cap style");
        lineCapViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        lineCapViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        lineCapViewer.setOptions(new String[] {"butt", "round", "square"});
       
        createLabel(parent, "Dash Array", "Describe the dash array sequence");
        dashArrayViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        dashArrayViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        dashArrayViewer.setOptions(new String[] {"solid", "dot", "dash", "dash-dot", "dash-dot-dot", "dot-dot"});
       
        createLabel(parent, "Dash Offset", "Select the dash offset");
        dashOffsetViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        dashOffsetViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        dashOffsetViewer.setOptions(new double[] {0.0, 0.25, 0.5, 0.75, 1.0});
    }
View Full Code Here


        titleLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 2, 1));
       
        Label label = new Label(markComposite, SWT.NONE);
        label.setText("Marker Type");
       
        markerTypeCombo = new ComboExpressionViewer(markComposite, SWT.SINGLE);
        markerTypeCombo.getControl().setLayoutData(new TableWrapData(TableWrapData.LEFT));
        markerTypeDecoration = new ControlDecoration(label, SWT.LEFT | SWT.TOP);
        markerTypeDecoration.hide();
        markerTypeCombo.getControl().setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, false));
       
View Full Code Here

       
        Label label = new Label(parent, SWT.NONE);
        label.setText("Fill Type");
        label.setToolTipText("Select the type of fill");
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true));
        fillTypeViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        fillTypeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        fillTypeViewer.getControl().setToolTipText("Select the type of fill");
       
        label = new Label(parent, SWT.NONE);
        label.setText("Colour");
        label.setToolTipText("Select fill colour");
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true));
        colourViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        colourViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
       
        label = new Label(parent, SWT.NONE);
        label.setText("Opacity");
        label.setToolTipText("Select the opacity");
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true));
        opacityViewer = new ComboExpressionViewer(parent, SWT.SINGLE);
        opacityViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
           
       
       
    }
View Full Code Here

       
        Label label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_opacity);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_opacity);
        opacityViewer = new ComboExpressionViewer(graphicComposite, SWT.SINGLE);
        opacityViewer.setOptions(getOpacityList());
        opacityViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        opacityViewer.getControl().setToolTipText(Messages.StylingConstants_label_opacity);
       
        label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_size);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_size);
        sizeViewer = new ComboExpressionViewer(graphicComposite, SWT.SINGLE);
        sizeViewer.setOptions(getSizeList());
        GridData gd = new GridData(SWT.FILL, SWT.FILL, true, false);
        GC gc = new GC(sizeViewer.getControl());
        try {
            Point extent = gc.textExtent("X");//$NON-NLS-1$
            gd.widthHint = 3 * extent.x;
        } finally {
            gc.dispose();
        }
        sizeViewer.getControl().setLayoutData( gd);
        sizeViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_size);
       
        label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_rotation);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_rotation);
        rotationViewer = new ComboExpressionViewer(graphicComposite, SWT.SINGLE);
        rotationViewer.setOptions(getRotationList());
        rotationViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        rotationViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_rotation);
       
        label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_anchor);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_anchor);
        Composite anchorComposite = new Composite(graphicComposite, SWT.NONE);
        anchorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        anchorComposite.setLayout(new FormLayout());
        anchorXViewer = new ComboExpressionViewer(anchorComposite, SWT.SINGLE);
        anchorXViewer.setOptions(getAnchorList());
        FormData data = new FormData();
        data.left = new FormAttachment(0, 0);
        data.top = new FormAttachment(0, 0);
        data.bottom = new FormAttachment(100, 0);
        anchorXViewer.getControl().setLayoutData(data);
        anchorXViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_anchor);
        label = new Label(anchorComposite, SWT.NONE);
        label.setText("X");
        data = new FormData();
        data.left = new FormAttachment(anchorXViewer.getControl(), 4);
        data.bottom = new FormAttachment(anchorXViewer.getControl(), 0, SWT.BOTTOM) ;
        label.setLayoutData(data);
        label.setToolTipText(Messages.StylingConstants_tooltip_anchor);
        anchorYViewer = new ComboExpressionViewer(anchorComposite, SWT.SINGLE);
        anchorYViewer.setOptions(getAnchorList());
        data = new FormData();
        data.left = new FormAttachment(label, 4);
        data.top = new FormAttachment(anchorXViewer.getControl(), 0, SWT.TOP);
        data.bottom = new FormAttachment(anchorXViewer.getControl(), 0, SWT.BOTTOM);
        data.right = new FormAttachment(100, 0);
        anchorYViewer.getControl().setLayoutData(data);
        anchorYViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_anchor);
       
        label = new Label(graphicComposite, SWT.NONE);
        label.setText(Messages.StylingConstants_label_displacement);
        label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
        label.setToolTipText(Messages.StylingConstants_tooltip_displacement);
        Composite displacementComposite = new Composite(graphicComposite, SWT.NONE);
        displacementComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
        displacementComposite.setLayout(new FormLayout());
        displacementXViewer = new ComboExpressionViewer(displacementComposite, SWT.SINGLE);
        displacementXViewer.setOptions(getDisplacementList());
        data = new FormData();
        data.left = new FormAttachment(0, 0);
        data.top = new FormAttachment(0, 0);
        data.bottom = new FormAttachment(100, 0);
        displacementXViewer.getControl().setLayoutData(data);
        displacementXViewer.getControl().setToolTipText(Messages.StylingConstants_tooltip_displacement);
        label = new Label(displacementComposite, SWT.NONE);
        label.setText("X");
        data = new FormData();
        data.left = new FormAttachment(displacementXViewer.getControl(), 4, SWT.RIGHT);
        data.bottom = new FormAttachment(displacementXViewer.getControl(), 0, SWT.BOTTOM);
        label.setLayoutData(data);
        label.setToolTipText(Messages.StylingConstants_tooltip_displacement);
        displacementYViewer = new ComboExpressionViewer(displacementComposite, SWT.SINGLE);
        displacementYViewer.setOptions(getDisplacementList());
        data = new FormData();
        data.left = new FormAttachment(label, 4, SWT.RIGHT);
        data.top = new FormAttachment(displacementXViewer.getControl(), 0, SWT.TOP);
        data.bottom = new FormAttachment(displacementXViewer.getControl(), 0, SWT.BOTTOM);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.filter.ComboExpressionViewer

Copyright © 2018 www.massapicom. 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.