Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.DrawingAttributes


        if (drawingAttributes != null) {
            drawingAttributes.setPropertyPrefix(getPropertyPrefix());
            drawingAttributes.getProperties(props);
        } else {
            DrawingAttributes da = (DrawingAttributes) DrawingAttributes.DEFAULT.clone();
            da.setPropertyPrefix(getPropertyPrefix());
            da.getProperties(props);
        }

        if (coordTransform != null
                && coordTransform instanceof PropertyConsumer) {
            ((PropertyConsumer) coordTransform).getProperties(props);
View Full Code Here


            JPanel stuff = new JPanel();
            // stuff.setLayout(new BoxLayout(stuff,
            // BoxLayout.X_AXIS));
            // stuff.setAlignmentX(Component.LEFT_ALIGNMENT);

            DrawingAttributes da = getDrawingAttributes();
            if (da != null) {
                stuff.add(da.getGUI());
            }
            box.add(stuff);

            JPanel pal2 = new JPanel();
            JButton redraw = new JButton(i18n.get(ShapeLayer.class,
View Full Code Here

     * the Environment.
     */
    protected transient I18n i18n = Environment.getI18n();

    protected AbstractLocationHandler() {
        nameDrawingAttributes = new DrawingAttributes();
        locationDrawingAttributes = new DrawingAttributes();

        // try {
        // nameDrawingAttributes.setLinePaint(ColorFactory.parseColor(defaultNameColorString,
        // true));
        // locationDrawingAttributes.setLinePaint(ColorFactory.parseColor(defaultLocationColorString,
View Full Code Here

    public static OMPoly convert(OMLine omLine) {
        if (omLine.getRenderType() == OMGraphic.RENDERTYPE_LATLON) {
            OMPoly poly = new OMPoly(omLine.getLL(), OMGraphic.DECIMAL_DEGREES, omLine.getLineType());
            poly.setAttributes(omLine.getAttributes());
            DrawingAttributes da = new DrawingAttributes();
            da.setFrom(omLine);
            da.setTo(poly);
            return poly;
        } else
            return null;
    }
View Full Code Here

        } else {
            Debug.error(realPrefix + ": No shape file name provided:");
            Debug.error("\t" + realPrefix + ShapeLayer.shapeFileProperty);
        }

        drawingAttributes = new DrawingAttributes(realPrefix, props);

        enabled = PropUtils.booleanFromProperties(props, realPrefix
                + EnabledProperty, enabled);
        buffered = PropUtils.booleanFromProperties(props, realPrefix
                + BufferedProperty, buffered);
View Full Code Here

                (imageURLString == null ? "" : imageURLString));

        if (drawingAttributes != null) {
            drawingAttributes.getProperties(props);
        } else {
            DrawingAttributes da = (DrawingAttributes) DrawingAttributes.DEFAULT.clone();
            da.setPropertyPrefix(prefix);
            da.getProperties(props);
        }
        props.put(prefix + EnabledProperty, new Boolean(enabled).toString());
        props.put(prefix + BufferedProperty, new Boolean(buffered).toString());

        if (spatialIndex != null) {
View Full Code Here

     */
    public Container getFace() {
        JToolBar jtb = new JToolBar();
        jtb.setFloatable(false);

        DrawingAttributes da = new DrawingAttributes();
        da.setLinePaint(Color.blue);
        da.setFillPaint(Color.blue);
        da.setStroke(new BasicStroke(2));
        DrawingAttributes da2 = new DrawingAttributes();
        da2.setFillPaint(Color.lightGray);
        da2.setLinePaint(Color.lightGray);
        da2.setStroke(new BasicStroke(2));

        int[] xpoints = new int[] { 15, 15, 50, 50, 90, 50, 50, 15 };
        int[] ypoints = new int[] { 30, 70, 70, 90, 50, 10, 30, 30 };
        Shape shape = new Polygon(xpoints, ypoints, xpoints.length);

View Full Code Here

   
    public static EsriTextPoint convert(OMText omtext) {
        if (omtext.getRenderType() == RENDERTYPE_LATLON) {
            EsriTextPoint etp = new EsriTextPoint(omtext.getLat(), omtext.getLon(), omtext.getData(), omtext.getJustify());
            etp.setAttributes(omtext.getAttributes());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(omtext);
            attributes.setTo(etp);

            return etp;
        } else {
            return null;
        }
View Full Code Here

            float[] degreePoints = new float[rawLL.length];
            System.arraycopy(rawLL, 0, degreePoints, 0, rawLL.length);

            EsriPolylineZ ePoly = new EsriPolylineZ(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());
            ePoly.setAttributes(ompoly.getAttributes());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(ompoly);
            attributes.setTo(ePoly);

            return ePoly;
        } else {
            return null;
        }
View Full Code Here

    protected OMDrawingToolMouseMode activateDrawingTool(String ttc) {
        if (drawingTool != null && ttc != null) {
            // If there is a pre-defined set of DrawingAttributes for
            // a particular OMGraphic, set those attributes in the
            // GraphicAttributes used in the OMDrawingTool.
            DrawingAttributes da = (DrawingAttributes) drawingAttributesTable.get(ttc);
            if (da != null) {
                da.setTo(ga);
            }

            if (Debug.debugging("editortool")) {
                Debug.output("DrawingEditorTool.activateDrawingTool(" + ttc
                        + ")");
View Full Code Here

TOP

Related Classes of com.bbn.openmap.omGraphics.DrawingAttributes

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.