⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frameposition.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.drawLine;

public class FramePosition {
  public int lat,lon;
  private String latStr,lonStr;
  private double multiple =1;//放大倍数
  private long latd,lond;
  public FramePosition() {
  }
  public void setLatAndLon(String latString,String lonString){//赋给本类,用来运算的经纬度
    this.latStr = latString;
    this.lonStr = lonString;
  }
  private void calculate(){
    latd = Math.round(Double.parseDouble(latStr)*1000*multiple);
    lond = Math.round(Double.parseDouble(lonStr)*1000*multiple);

    lat = Integer.parseInt( (latd)*(-1) + "");
    lon = Integer.parseInt( (lond ) + "");
  }
  public void zoom(double number){//这样,只要调整number的大小就可以随意的放大、缩小
    this.multiple =this.multiple*number;
  }
  public void moveLat(int y){
    this.lat =this.lat +y;
  }
  public void moveLon(int x){
    this.lat = this.lon +x;
  }
  public void setSystemLatAndLon(){

  }
  public static void main(String args[]){
    System.out.println(Integer.MAX_VALUE + "@@@@@@" +Integer.MIN_VALUE);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -