/** * 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(); }
/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }
/** * Returns a point which represents the x,y position on the given rectangle MAP of the given point * of interest POINT * @param POINT * @param MAP * @return Point2D that represents the x,y position of the given lat, lon values on the * given rectangle of the map */ public Point2D toXY(final Poi POINT, final java.awt.Rectangle MAP) { return toXY(POINT.getLat(), POINT.getLon(), MAP); } // </editor-fold>
public Altimeter() { super(); init(getInnerBounds().width, getInnerBounds().height); setMinValue(0); setMaxValue(10); calcAngleStep(); setLcdColor(LcdColor.BLACK_LCD); setLcdVisible(true); setTitle("ALT"); setUnitString("ft"); } // </editor-fold>
/** * Sets the color definition that is used to visualize the on state of the symbol * @param ON_COLOR */ public void setOnColor(final ColorDef ON_COLOR) { onColor = ON_COLOR; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
public void setRotateTickmarks(final boolean ROTATE_TICKMARKS) { this.rotateTickmarks = ROTATE_TICKMARKS; setValue(0); repaint(getInnerBounds()); }
/** * Returns the distance of the poi to the given poi in meters. * The calculation takes the earth radius into account. * @param POINT_OF_INTEREST * @return the distance in meters to the given poi */ public double distanceTo(final Poi POINT_OF_INTEREST) { return distanceTo(POINT_OF_INTEREST.getLat(), POINT_OF_INTEREST.getLon()); }
/** * Sets the custom color that will be used for visualization of the sky * @param CUSTOM_SKY_COLOR */ public void setCustomSkyColor(final Color CUSTOM_SKY_COLOR) { customSkyColor = CUSTOM_SKY_COLOR; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
/** * Enables / disables the rotation of the text in the center of the component * @param TEXT_ORIENTATION_FIXED */ public void setTextOrientationFixed(final boolean TEXT_ORIENTATION_FIXED) { this.textOrientationFixed = TEXT_ORIENTATION_FIXED; repaint(); }
/** * Stops the stopwatch */ public void stop() { setRunning(false); }
/** * 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(); }
/** * Sets the custom color definition that will be used to visualize the on state of the symbol * @param CUSTOM_ON_COLOR */ public void setCustomOnColor(final CustomColorDef CUSTOM_ON_COLOR) { customOnColor = CUSTOM_ON_COLOR; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }
/** * Returns a point which represents the x,y position on the given rectangle MAP of the given point * of interest POINT * @param POINT * @param MAP * @return Point2D that represents the x,y position of the given lat, lon values on the * given rectangle of the map */ public Point2D toXY(final Poi POINT, final java.awt.Rectangle MAP) { return toXY(POINT.getLat(), POINT.getLon(), MAP); } // </editor-fold>
/** * 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(); }
/** * Sets the color definition that will be used to visualize the off state of the symbol * @param OFF_COLOR */ public void setOffColor(final ColorDef OFF_COLOR) { offColor = OFF_COLOR; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
/** * 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(); }
/** * Enables / disables the glow effect to the on state of the symbol * @param GLOW */ public void setGlow(final boolean GLOW) { glow = GLOW; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }