Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.DrawingAttributes


            try {

                String shpFilePath = shpFile.getAbsolutePath();
                String shpFileName = shpFile.getName();

                DrawingAttributes da = new DrawingAttributes();
                da.setSelectPaint(new Color(200, 100, 100, 200));

                EsriGraphicList shapeList = EsriGraphicList.getEsriGraphicList(shpFile.toURL(),
                        da,
                        DbfTableModel.getDbfTableModel(new File(shpFilePath.replaceAll(".shp",
                                ".dbf")).toURL()));
View Full Code Here


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

            EsriPolygon ePoly = new EsriPolygon(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(ompoly);
            attributes.setTo(ePoly);
            ePoly.setAttributes(ompoly.getAttributes());
            ePoly.setIsPolygon(true);
            return ePoly;
        } else {
            return null;
View Full Code Here

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

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

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

            EsriIconPoint eip = new EsriIconPoint(omscalingicon.getLat(), omscalingicon.getLon(), omscalingicon.getImage());
            eip.setBaseScale(omscalingicon.getBaseScale());
            eip.setMaxScale(omscalingicon.getMaxScale());
            eip.setMinScale(omscalingicon.getMinScale());
            eip.setAttributes(omscalingicon.getAttributes());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(omscalingicon);
            attributes.setTo(eip);

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

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

            EsriPolygonZ ePoly = new EsriPolygonZ(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(ompoly);
            attributes.setTo(ePoly);
            ePoly.setAttributes(ompoly.getAttributes());
            return ePoly;
        } else {
            return null;
        }
View Full Code Here

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

            EsriPolygonM ePoly = new EsriPolygonM(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());
            DrawingAttributes attributes = new DrawingAttributes();
            attributes.setFrom(ompoly);
            attributes.setTo(ePoly);
            ePoly.setAttributes(ompoly.getAttributes());
            ePoly.setIsPolygon(true);
            return ePoly;
        } else {
            return null;
View Full Code Here

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

            EsriPolylineM ePoly = new EsriPolylineM(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

    public final static String RuleActionLabel = "label";
    public final static String RuleActionMinScale = "minScale";
    public final static String RuleActionMaxScale = "maxScale";

    protected DbfHandler() {
        defaultDA = new DrawingAttributes();
    }
View Full Code Here

            boolean renderProperties = PropUtils.booleanFromProperties(props,
                    prefix + RuleActionRender,
                    false);

            if (renderProperties) {
                da = new DrawingAttributes();
                da.setProperties(prefix, props);
            }

        }
View Full Code Here

    public static int buttonSize = 16;
    public static ImageIcon warningImage;
    public static ImageIcon invisibleImage;

    protected static void initIcons() {
        DrawingAttributes blackDa = new DrawingAttributes();

        DrawingAttributes invisDa = new DrawingAttributes();
        invisDa.setLinePaint(OMColor.clear);
        invisDa.setFillPaint(OMColor.clear);

        DrawingAttributes yellowDa = new DrawingAttributes();
        yellowDa.setLinePaint(OMColor.yellow);
        yellowDa.setFillPaint(OMColor.yellow);

        IconPart ip = new BasicIconPart(new Rectangle2D.Double(0, 0, 100, 100));
        ip.setRenderingAttributes(invisDa);
        invisibleImage = OMIconFactory.getIcon(buttonSize, buttonSize, ip);
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.