Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.DrawingAttributes


        outerc.weighty = .25;
        outerc.anchor = GridBagConstraints.CENTER;
        outergridbag.setConstraints(configPanel, outerc);
        add(configPanel);

        DrawingAttributes oldDrawingAttributes = (DrawingAttributes) drawingAttributes.clone();

        if (layer != null) {
            // initialize currentFeatures list with anything the layer might
            // have
            // already.
            LayerGraphicWarehouseSupport warehouse = layer.getWarehouse();
            List initialFeatureList = warehouse.getFeatures();

            Iterator listIter = initialFeatureList.iterator();
            while (listIter.hasNext()) {
                // For each feature, find the corresponding tree node
                // and perform the AddFeatureCmd command
                loadCurrentFeatures(top.children(),
                        (String) listIter.next(),
                        warehouse);
            }
        }

        oldDrawingAttributes.setTo(drawingAttributes);
    }
View Full Code Here


            super(size);
        }

        public synchronized void setDrawingAttributes(
                                                      VPFFeatureGraphicWarehouse vfgw) {
            DrawingAttributes da = vfgw.getAttributesForFeature(featureName);
            da.setLinePaint(com.bbn.openmap.omGraphics.OMColor.clear);
            da.setSelectPaint(com.bbn.openmap.omGraphics.OMColor.clear);
            setTo(da);
        }
View Full Code Here

            super(size);
        }

        public synchronized void setDrawingAttributes(
                                                      VPFFeatureGraphicWarehouse vfgw) {
            DrawingAttributes da = vfgw.getAttributesForFeature(featureName);
            da.setFillPaint(com.bbn.openmap.omGraphics.OMColor.clear);
            setTo(da);
        }
View Full Code Here

        List features = getFeatures();
        int numFeatures = features.size();

        for (int i = 0; i < numFeatures; i++) {
            String currentFeature = (String) features.get(i);
            DrawingAttributes da = getAttributesForFeature(currentFeature);

            if (da != null) {
                String desc = null;
                try {
                    desc = lst.getDescription(currentFeature);
                } catch (FormatException fe) {
                }

                if (desc == null) {
                    desc = "Feature Description Unavailable";
                }
                JPanel featurePanel = new JPanel();
                featurePanel.add(da.getGUI());

                jtp.addTab(currentFeature, null, featurePanel, desc);
            }
        }
        return jtp;
View Full Code Here

    protected TimerRateComboBox timerRateControl;
    protected JSlider timeSlider;
    protected TimeSliderSupport timeSliderSupport;

    public ScenarioGraphicLoader() {
        drawingAttributes = new DrawingAttributes();
        dataBounds = new DataBounds();
        setUpdateInterval(500); // Default 1/2 second.
    }
View Full Code Here

    public ImageIcon getIconForPaint(Paint paint, boolean fill) {

        if (paint == null)
            paint = Color.black;

        DrawingAttributes da = new DrawingAttributes();
        da.setLinePaint(paint);
        da.setStroke(new BasicStroke(2));
        if (fill) {
            da.setFillPaint(paint);
        }

        OpenMapAppPartCollection collection = OpenMapAppPartCollection.getInstance();
        IconPartList parts = new IconPartList();

        if (paint instanceof Color || paint == OMColor.clear) {
            Color color = (Color) paint;
            Color opaqueColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
            DrawingAttributes opaqueDA = new DrawingAttributes();
            opaqueDA.setLinePaint(opaqueColor);
            opaqueDA.setStroke(new BasicStroke(2));

            if (fill) {
                opaqueDA.setFillPaint(opaqueColor);
            }

            parts.add(collection.get("LR_TRI", opaqueDA));
            parts.add(collection.get("UL_TRI", da));
        } else {
View Full Code Here

                        + newParams.id + "\"");
            }

            areasItems.addElement(currentArea);

            newParams.drawingAttributes = new DrawingAttributes(prefix
                    + areasProperty + "." + currentArea, props);

            politicalAreas.put(newParams.id.toUpperCase().intern(), newParams);
        }
View Full Code Here

        Shape clip = getClip();
        if (clip != null) {
            g.setClip(clip);
        }

        DrawingAttributes da = getRenderingAttributes();
        DrawingAttributes tmpDA = null;

        Iterator it = iterator();
        while (it.hasNext()) {
            IconPart part = (IconPart) it.next();
View Full Code Here

    public static EsriPoint convert(OMPoint ompoint) {
        if (ompoint.getRenderType() == RENDERTYPE_LATLON) {
            EsriPoint ePoint = new EsriPoint(ompoint.getLat(), ompoint.getLon());
            ePoint.setAttributes(ompoint.getAttributes());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(ompoint);
            attributes.setTo(ePoint);

            // Hmmm. looses drawing information, like Oval, etc.
            // That's not even kept in the shape file, so it might be
            // something for the drawing attributes. Better save it
            // in case someone looks for it later.
View Full Code Here

        String realPrefix = PropUtils.getScopedPropertyPrefix(this);

        setFileProperties(realPrefix, props);

        drawingAttributes = new DrawingAttributes(prefix, props);

        shadowX = PropUtils.intFromProperties(props, realPrefix
                + shadowXProperty, 0);
        shadowY = PropUtils.intFromProperties(props, realPrefix
                + shadowYProperty, 0);
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.