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

📄 polystruct.java

📁 主要为一个空间信息管理系统
💻 JAVA
字号:
package edu.whu.poly;
import java.awt.*;
import java.util.Date;
import java.text.DateFormat;
/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class polyStruct
{
  String projectName;
  int[] polyX;
  int[] polyY;
  int PointNumber=0;
  int ProjectNumber=0;
  String filePath1;
  String filePath2;
  String filePath3;
  String projectMan;
  Date time;
  String coordinate;
  String eposition;
  String constract = null;
  String file = null;
  String projectnum = null;
  String name = null;
  String transaction = null;
  String unit = null;
  String man1 = null;
  String man2 = null;
  String man3 = null;
  String originaldata = null;
  String claritymap = null;
  String projectsize = null;
  String projectaddress = null;
  String industry = null;
  String remark = null;
  Date projectTime = null;


  public polyStruct(int PNumber)
  {
    PointNumber=PNumber;
    polyX=new int[PNumber];
    polyY=new int[PNumber];
    time=new Date();
  }
  public polyStruct()
  {
    time=new Date();
  }
  public void setProjectName(String name)
  {
    projectName=name;
  }
  public void setCoordinate(String Pcoordinate)
  {
    coordinate=Pcoordinate;
  }
  public void setName(String name)
  {
    this.name=name;
  }
  public void setConstract(String constract)
  {
    this.constract=constract;
  }
  public void setFile(String file)
  {
    this.file=file;
  }
  public void setprojectNum(String projectnum)
  {
    this.projectnum=projectnum;
  }
  public void setTransaction(String transaction)
  {
    this.transaction=transaction;
  }
  public void setUnit(String unit)
  {
    this.unit=unit;
  }
  public void setMan1(String man1)
  {
    this.man1=man1;
  }
  public void setMan2(String man2)
  {
    this.man2=man2;
  }

  public void setMan3(String man3)
  {
    this.man3 = man3;
  }
  public void setOriginaldata(String originaldata)
  {
    this.originaldata = originaldata;
  }
  public void setClaritymap(String claritymap)
  {
    this.claritymap = claritymap;
  }
  public void setProjectsize(String projectsize)
  {
    this.projectsize = projectsize;
  }

  public void setProjectaddress(String projectaddress)
  {
    this.projectaddress = projectaddress;
  }
  public void setIndustry(String industry)
  {
    this.industry = industry;
  }
  public void setRemark(String remark)
  {
    this.remark = remark;
  }
  public String getRemark()
  {
    return this.remark;
  }
  public String getIndustry()
  {
    return this.industry;
  }
  public String getProjectaddress()
  {
    return this.projectaddress;
  }

  public String getProjectsize()
  {
    return this.projectsize;
  }
  public String getClaritymap()
  {
    return this.claritymap;
  }
  public String getOriginaldata()
  {
    return this.originaldata;
  }
  public String getMan3()
  {
    return this.man3;
  }
  public String getMan2()
  {
    return this.man2;
  }
  public String getMan1()
  {
    return this.man1;
  }
  public String getUnit()
  {
    return this.unit;
  }
  public String getTransaction()
  {
    return this.transaction;
  }
  public String getprojectNum()
  {
    return this.projectnum;
  }
  public String getFile()
  {
    return this.file;
  }
  public String getConstract()
  {
    return this.constract;
  }
  public String getName()
  {
    return this.name;
  }
  public String getCoordinate()
  {
    return this.coordinate;
  }
  public void setProjectMan(String man)
  {
    projectMan=man;
  }
  public void setFilePath1(String fileP)
  {
    filePath1 = fileP;
  }

  public void setFilePath2(String fileP)
  {
    filePath2 = fileP;
  }

  public void setFilePath3(String fileP)
  {
    filePath3 = fileP;
  }
  public String getProjectName()
  {
    return this.projectName;
  }


  public String getEposition()
  {
    return this.eposition;
  }

  public int getProjectNumber()
  {
    return ProjectNumber;
  }
  public String getFilePath1()
 {
   return filePath1;
 }

 public String getFilePath2()
 {
   return filePath2;
 }

 public String getFilePath3()
 {
   return filePath3;
 }

  public void setX(int[] x)
  {
    polyX=(int[])x.clone();
  }
  public void setY(int[] y)
  {
    polyY=(int[])y.clone();
  }
  public int[] getX()
  {
    return polyX;
  }
  public int[] getY()
  {
    return polyY;
  }
  public Date getDate()
  {
    return time;
  }
  public void setDate(Date time)
  {
    this.time=time;
  }
  public Point[] getPointArray()
  {
    Point[] point1=new Point[PointNumber];
    for (int i = 0; i < PointNumber; i++)
    {

      Point tempP1 = new Point(0, 0);
      tempP1.x = polyX[i];
      tempP1.y = polyY[i];
      point1[i] = tempP1;

    }
    return point1;
  }
  public String[] getPropertyArray()
  {
    String[] property = new String[8];
    property[0] = this.projectName;
    property[1] = DateFormat.getDateTimeInstance(2, 2).format(this.getDate());
    property[2] = this.getFilePath1();
    property[3] = this.getFilePath2();
    property[4] = this.getFilePath3();
    property[5] = this.getProjectMan();
    property[6] = this.coordinate;
    property[7] = this.eposition;
    return property;
  }

  public Object[] getAbstractPropertyArray()
  {
    Object[] property = new Object[8];
    property[0] = new Boolean(false);
    property[1] = this.projectName;
    property[2] = DateFormat.getDateTimeInstance(2, 2).format(this.getDate());
    property[3] = this.getProjectMan();
    property[4] = this.coordinate;
    return property;
  }

  public String getProjectMan()
  {
    return projectMan;
  }
}

⌨️ 快捷键说明

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