/** * Updates the position of the given poi by it's name (BLIP_NAME) on * the radar screen. This could be useful to visualize moving points. * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP_NAME * @param LOCATION */ public void updatePoi(final String BLIP_NAME, final Point2D LOCATION) { if (pois.keySet().contains(BLIP_NAME)) { pois.get(BLIP_NAME).setLocation(LOCATION); checkForBlips(); } }
/** * Removes a point of interest from the radar * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP */ public void removePoi(Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { pois.remove(BLIP.getName()); checkForBlips(); } }
/** * Updates the position of the given poi by it's name (BLIP_NAME) on * the radar screen. This could be useful to visualize moving points. * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP_NAME * @param LOCATION */ public void updatePoi(final String BLIP_NAME, final Point2D LOCATION) { if (pois.keySet().contains(BLIP_NAME)) { pois.get(BLIP_NAME).setLocation(LOCATION); checkForBlips(); } }
/** * Removes a point of interest from the radar * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP */ public void removePoi(Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { pois.remove(BLIP.getName()); checkForBlips(); } }
/** * Adds a new point of interest to the list of poi's of the radar * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP */ public void addPoi(final Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { updatePoi(BLIP.getName(), BLIP.getLocation()); } else { pois.put(BLIP.getName(), BLIP); } checkForBlips(); }
/** * Sets the range of the radar in meters which means * the distance from the center of the radar to it's * outer circle * @param RANGE */ public void setRange(final double RANGE) { this.range = RANGE; checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }
/** * Adds a new point of interest to the list of poi's of the radar * Keep in mind that only the poi's are visible as blips that are * in the range of the radar. * @param BLIP */ public void addPoi(final Poi BLIP) { if (pois.keySet().contains(BLIP.getName())) { updatePoi(BLIP.getName(), BLIP.getLocation()); } else { pois.put(BLIP.getName(), BLIP); } checkForBlips(); }
/** * Sets the range of the radar in meters which means * the distance from the center of the radar to it's * outer circle * @param RANGE */ public void setRange(final double RANGE) { this.range = RANGE; checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }
/** * Defines the position of the center of the radar by the * given coordinates as latitude and longitude * @param LON * @param LAT */ public void setMyLocation(final double LON, final double LAT) { this.MY_LOCATION.setLocation(LON, LAT); checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }
/** * Defines the position of the center of the radar by the * given coordinates as latitude and longitude * @param LON * @param LAT */ public void setMyLocation(final double LON, final double LAT) { this.MY_LOCATION.setLocation(LON, LAT); checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }
/** * Defines the position of the center of the radar by the * coordinates of the given point of interest (poi) object * @param NEW_LOCATION */ public void setMyLocation(final Poi NEW_LOCATION) { this.MY_LOCATION.setLocation(NEW_LOCATION.getLocation()); checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }
/** * Defines the position of the center of the radar by the * coordinates of the given point of interest (poi) object * @param NEW_LOCATION */ public void setMyLocation(final Poi NEW_LOCATION) { this.MY_LOCATION.setLocation(NEW_LOCATION.getLocation()); checkForBlips(); init(getInnerBounds().width, getInnerBounds().height); repaint(); }