Beispiel #1
0
 /**
  * Set the text to the elevation text.
  *
  * @param elevation elevation of the point in meters.
  */
 public void setElevation(int elevation) {
   // m - ft conversion
   if (elevation < -100) text.setData("No Data Here");
   else {
     int elevation_ft = (int) ((float) elevation * 3.280840f);
     text.setData(elevation + " m / " + elevation_ft + " ft");
   }
 }
Beispiel #2
0
    public DTEDLocation(int x, int y) {
      text = new OMText(x + 10, y, (String) null, (java.awt.Font) null, OMText.JUSTIFY_LEFT);

      dot = new OMRect(x - 1, y - 1, x + 1, y + 1);
      text.setLinePaint(java.awt.Color.red);
      dot.setLinePaint(java.awt.Color.red);
    }
Beispiel #3
0
 public void generate(Projection proj) {
   text.generate(proj);
   dot.generate(proj);
 }
Beispiel #4
0
 public void render(java.awt.Graphics g) {
   text.render(g);
   dot.render(g);
 }
Beispiel #5
0
 /** Set the x-y location of the combo in the screen */
 public void setLocation(int x, int y) {
   text.setX(x + 10);
   text.setY(y);
   dot.setLocation(x - 1, y - 1, x + 1, y + 1);
 }