public Radar() { super(); init(getInnerBounds().width, getInnerBounds().height); } // </editor-fold>
@Override public Point2D getCenter() { return new Point2D.Double(bImage.getWidth() / 2.0 + getInnerBounds().x, bImage.getHeight() / 2.0 + getInnerBounds().y); }
@Override public Point2D getCenter() { return new Point2D.Double(bImage.getWidth() / 2.0 + getInnerBounds().x, bImage.getHeight() / 2.0 + getInnerBounds().y); }
public Radar() { super(); init(getInnerBounds().width, getInnerBounds().height); } // </editor-fold>
/** * 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(); }
/** * 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(); }