Package messages

Examples of messages.RadarPlaneObject


        Graphics2D g2 = (Graphics2D) g;

        Iterator<RadarPlaneObject> it = atmcModel.getRadarPlaneObjects().values().iterator();
        int planeCount = 0;
        while (it.hasNext()) {
            RadarPlaneObject current = it.next();
            Float cAltitude = 0f;
            try {
                cAltitude = current.getAltitude();
            } catch (NumberFormatException e) {
            }


            if (cAltitude > atmcModel.getMinHeight() && cAltitude < atmcModel.getMaxHeight()) {
                if (!lastPlanePosition.containsKey(current.getIp())) {
                    lastPlanePosition.put(current.getIp(), null);
                }
                PlaneDataObject lastPos = lastPlanePosition.get(current.getIp());
                PlaneDataObject currentPos = (PlaneDataObject) current.getCurrentPos();


                if (currentPos != null && !currentPos.equals(lastPlanePosition.get(current.getIp()))) {
                    lastPlanePosition.put(current.getIp(), currentPos);
                }

                if (currentPos != null) {
                    drawHistoryList(g2, current);
                    drawPlaneShape(g2, current);
View Full Code Here


     * Adds a new plane.
     *
     * @param puo the planeupdateobject of the new plane
     */
    private void addPlane(IPlaneUpdateObject puo) {
        IRadarPlaneObject tmp = new RadarPlaneObject(puo);
        radarPlaneList.put(puo.getIp(), tmp);
        handlePlane(tmp);
    }
View Full Code Here

     * Adds a new plane.
     *
     * @param pdo the planedataobject of the new plane
     */
    private void addPlane(IPlaneDataObject pdo) {
        IRadarPlaneObject tmp = new RadarPlaneObject(pdo);
        radarPlaneList.put(pdo.getIP(), tmp);
        handlePlane(tmp);
    }
View Full Code Here

     * Removes a plane.
     *
     * @param puo the planeupdateobject of the plane to be removed
     */
    private void removePlane(IPlaneUpdateObject puo) {
        IRadarPlaneObject tmp = new RadarPlaneObject(puo);
        radarPlaneList.remove(puo.getIp());
        assignedList.removePlane(tmp);
        unassignedList.removePlane(tmp);
    }
View Full Code Here

TOP

Related Classes of messages.RadarPlaneObject

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.