Examples of Alignments


Examples of org.locationtech.udig.style.advanced.utils.Alignments

        anchorVerticalCombo = new Combo(mainComposite, SWT.DROP_DOWN | SWT.READ_ONLY);
        anchorVerticalCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
        anchorVerticalCombo.setItems(Alignments.toVerticalStrings());
        anchorVerticalCombo.addSelectionListener(this);
        String anchorY = textSymbolizerWrapper.getAnchorY();
        Alignments vertAlign = Alignments.verticalAlignmentfromDouble(anchorY);
        anchorVerticalCombo.select(vertAlign.toIndex());

        anchorHorizontalCombo = new Combo(mainComposite, SWT.DROP_DOWN | SWT.READ_ONLY);
        anchorHorizontalCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
        anchorHorizontalCombo.setItems(Alignments.toHorizontalStrings());
        anchorHorizontalCombo.addSelectionListener(this);
        String anchorX = textSymbolizerWrapper.getAnchorX();
        Alignments horAlign = Alignments.horizontalAlignmentfromDouble(anchorX);
        anchorHorizontalCombo.select(horAlign.toIndex());

        // displacement
        Label displacementLabel = new Label(mainComposite, SWT.NONE);
        displacementLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
        displacementLabel.setText(Messages.PointLabelsParametersComposite_11);
View Full Code Here

Examples of org.locationtech.udig.style.advanced.utils.Alignments

        }
        haloRadiusSpinner.setSelection(tmp);

        // anchor
        String anchorY = textSymbolizerWrapper.getAnchorY();
        Alignments vertAlign = Alignments.verticalAlignmentfromDouble(anchorY);
        anchorVerticalCombo.select(vertAlign.toIndex());

        String anchorX = textSymbolizerWrapper.getAnchorX();
        Alignments horAlign = Alignments.horizontalAlignmentfromDouble(anchorX);
        anchorHorizontalCombo.select(horAlign.toIndex());

        // displacement
        String displacementX = textSymbolizerWrapper.getDisplacementX();
        String displacementY = textSymbolizerWrapper.getDisplacementY();
        Double tmpXdisplacement = Utilities.isNumber(displacementX, Double.class);
View Full Code Here

Examples of org.locationtech.udig.style.advanced.utils.Alignments

            int s1 = anchorVerticalCombo.getSelectionIndex();
            String vItem = anchorVerticalCombo.getItem(s1);
            int s2 = anchorHorizontalCombo.getSelectionIndex();
            String hItem = anchorHorizontalCombo.getItem(s2);

            Alignments vAlignment = Alignments.toAlignment(vItem);
            Alignments hAlignment = Alignments.toAlignment(hItem);
            String h = String.valueOf(hAlignment.toDouble());
            String v = String.valueOf(vAlignment.toDouble());
            notifyListeners(new String[]{h, v}, false, STYLEEVENTTYPE.LABELANCHOR);
        } else if (source.equals(rotationSpinner)) {
            int rotation = rotationSpinner.getSelection();
            String rotationStr = String.valueOf(rotation);
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.