Examples of XYPoint


Examples of com.bbn.openmap.CSpecialist.XYPoint

            eunit.ll1.lat = ll.lat;
            eunit.ll1.lon = ll.lon;
            break;

        case com.bbn.openmap.CSpecialist.UnitSymbolPackage.settableFields._USF_p1:
            XYPoint pt = update.p1();
            eunit.p1.x = pt.x;
            eunit.p1.y = pt.y;
            break;

        case com.bbn.openmap.CSpecialist.UnitSymbolPackage.settableFields._USF_group:
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            lat = ll.lat;
            lon = ll.lon;
            break;

        case com.bbn.openmap.CSpecialist.RasterPackage.settableFields._RASF_p1:
            XYPoint pt = update.p1();
            x = pt.x;
            y = pt.y;
            break;

        case com.bbn.openmap.CSpecialist.RasterPackage.settableFields._RASF_width:
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            setLat(ll.lat);
            setLon(ll.lon);
            break;

        case com.bbn.openmap.CSpecialist.BitmapPackage.settableFields._BF_p1:
            XYPoint pt = update.p1();
            setX(pt.x);
            setY(pt.y);
            break;

        case com.bbn.openmap.CSpecialist.BitmapPackage.settableFields._BF_width:
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            setLat(ll.lat);
            setLon(ll.lon);
            break;

        case com.bbn.openmap.CSpecialist.TextPackage.settableFields._TF_p1:
            XYPoint pt = update.p1();
            setX(pt.x);
            setY(pt.y);
            break;

        case com.bbn.openmap.CSpecialist.TextPackage.settableFields._TF_data:
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            LLPoint ll = update.ll1();
            setLatLon(ll.lat, ll.lon);
            break;

        case com.bbn.openmap.CSpecialist.CirclePackage.settableFields._CF_p1:
            XYPoint pt1 = update.p1();
            setX(pt1.x);
            setY(pt1.y);
            break;

        case com.bbn.openmap.CSpecialist.CirclePackage.settableFields._CF_major:
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            lon1 = ll1.lon;
            setNeedToRegenerate(true);
            break;

        case com.bbn.openmap.CSpecialist.RectanglePackage.settableFields._RF_p1:
            XYPoint pt1 = update.p1();
            x1 = pt1.x;
            y1 = pt1.y;
            if (renderType != RENDERTYPE_LATLON)
                setNeedToRegenerate(true);
            break;

        case com.bbn.openmap.CSpecialist.RectanglePackage.settableFields._RF_ll2:
            LLPoint ll2 = update.ll2();
            lat2 = ll2.lat;
            lon2 = ll2.lon;
            if (renderType == RENDERTYPE_LATLON)
                setNeedToRegenerate(true);
            break;

        case com.bbn.openmap.CSpecialist.RectanglePackage.settableFields._RF_p2:
            XYPoint pt2 = update.p2();
            x2 = pt2.x;
            y2 = pt2.y;
            if (renderType != RENDERTYPE_LATLON)
                setNeedToRegenerate(true);
            break;
View Full Code Here

Examples of com.bbn.openmap.CSpecialist.XYPoint

            lls[0] = ll1.lat;
            lls[1] = ll1.lon;
            break;

        case com.bbn.openmap.CSpecialist.LinePackage.settableFields._LF_p1:
            XYPoint pt1 = update.p1();
            int[] pts = getPts();
            pts[0] = pt1.x;
            pts[1] = pt1.y;
            break;

        case com.bbn.openmap.CSpecialist.LinePackage.settableFields._LF_ll2:
            LLPoint ll2 = update.ll2();
            lls = getLL();
            lls[2] = ll2.lat;
            lls[3] = ll2.lon;
            break;

        case com.bbn.openmap.CSpecialist.LinePackage.settableFields._LF_p2:
            XYPoint pt2 = update.p2();
            pts = getPts();
            pts[2] = pt2.x;
            pts[3] = pt2.y;
            break;
View Full Code Here

Examples of com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.XYPoint

        CRFPCoverageBox[] rets = new CRFPCoverageBox[size];

        for (int i = 0; i < size; i++) {
            RpfCoverageBox box = (RpfCoverageBox) vector.elementAt(i);
            if (box != null) {
                rets[i] = new CRFPCoverageBox((float) box.nw_lat, (float) box.nw_lon, (float) box.se_lat, (float) box.se_lon, box.subframeLatInterval, box.subframeLonInterval, box.chartCode, (short) box.zone, new XYPoint((short) box.startIndexes.x, (short) box.startIndexes.y), new XYPoint((short) box.endIndexes.x, (short) box.endIndexes.y), (short) box.tocNumber, (short) box.entryNumber, box.scale, box.percentCoverage);
            }
        }
        return rets;
    }
View Full Code Here

Examples of net.rim.device.api.ui.XYPoint

     */
    private void determineSiteColors() {
        final Vector highlightCandidates = new Vector(); // Stores the sites
                                                         // that the cursor
                                                         // touches.
        final XYPoint convertedHighlightArea[] = new XYPoint[4];

        // Cursor coordinates , obtained by dividing preferred width and height
        // by 2.
        final int cursorX = getPreferredWidth() >> 1;
        final int cursorY = getPreferredHeight() >> 1;

        // See comments below.
        int above, below, right, left;

        for (int count = 0; count < _allSites.size(); count++) {
            final Coordinates[] highlightableArea =
                    ((MapFieldDemoSite) _allSites.elementAt(count))
                            .getHighlightableArea();

            /*
             * The following algorithm dictates that for a site to be deemed
             * highlightable, the cursor must be at least over one point, under
             * one point, to the left of one point and to the right of one point
             */

            above = below = right = left = 0;
            for (int side = 0; side < 4; side++) {
                convertedHighlightArea[side] = new XYPoint();
                convertWorldToField(highlightableArea[side],
                        convertedHighlightArea[side]);

                if (convertedHighlightArea[side].x > cursorX) {
                    right++;
View Full Code Here

Examples of net.rim.device.api.ui.XYPoint

            final int[] xPts = new int[_numberOfPoints];
            final int[] yPts = new int[_numberOfPoints];

            // Converts the world coordinates of the map shape into pixels.
            for (int count = 0; count < _numberOfPoints; count++) {
                point[count] = new XYPoint();
                _map.convertWorldToField(_shape[count], point[count]);
            }

            // For use in 'drawFilledPath' below.
            for (int count = 0; count < _numberOfPoints; count++) {
                xPts[count] = point[count].x;
                yPts[count] = point[count].y;
            }

            g.setColor(_color);
            g.drawFilledPath(xPts, yPts, null, null);

            // Will only attempt to display site number if the zoom is 0 or 1.
            if (_map.getZoom() == 0) {
                // Display site number if available.
                if (_siteNumberPlacement != null) {
                    g.setColor(Color.WHITE);

                    final XYPoint relativePlacement = new XYPoint();
                    _map.convertWorldToField(_siteNumberPlacement,
                            relativePlacement);
                    g.drawText("" + _siteNumber, relativePlacement.x,
                            relativePlacement.y);
                }
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.