| | |
| | | private String stop; |
| | | private String addtime; |
| | | private String color; |
| | | private String baoliu1; |
| | | private String baoliu2; |
| | | private String baoliu3; |
| | | private String baoliu4; |
| | | private String baoliu5; |
| | | private String baoliu6; |
| | | private String baoliu7; |
| | | |
| | | |
| | | public String getBaoliu7() { |
| | | return baoliu7; |
| | | } |
| | | |
| | | public void setBaoliu7(String baoliu7) { |
| | | this.baoliu7 = baoliu7; |
| | | } |
| | | |
| | | public String getBaoliu6() { |
| | | return baoliu6; |
| | | } |
| | | |
| | | public void setBaoliu6(String baoliu6) { |
| | | this.baoliu6 = baoliu6; |
| | | } |
| | | |
| | | public String getBaoliu2() { |
| | | return baoliu2; |
| | | } |
| | | |
| | | public void setBaoliu2(String baoliu2) { |
| | | this.baoliu2 = baoliu2; |
| | | } |
| | | |
| | | public String getBaoliu3() { |
| | | return baoliu3; |
| | | } |
| | | |
| | | public void setBaoliu3(String baoliu3) { |
| | | this.baoliu3 = baoliu3; |
| | | } |
| | | |
| | | public String getBaoliu4() { |
| | | return baoliu4; |
| | | } |
| | | |
| | | public void setBaoliu4(String baoliu4) { |
| | | this.baoliu4 = baoliu4; |
| | | } |
| | | |
| | | public String getBaoliu5() { |
| | | return baoliu5; |
| | | } |
| | | |
| | | public void setBaoliu5(String baoliu5) { |
| | | this.baoliu5 = baoliu5; |
| | | } |
| | | |
| | | public String getBaoliu1() { |
| | | return baoliu1; |
| | | } |
| | | |
| | | public void setBaoliu1(String baoliu1) { |
| | | this.baoliu1 = baoliu1; |
| | | } |
| | | |
| | | public int getId() { |
| | | return id; |
| | |
| | | this.color = color; |
| | | } |
| | | |
| | | public Vector<Point2D.Double> getPts() { |
| | | Vector<Point2D.Double> pts = new Vector<Point2D.Double>(); |
| | | String zuobiao = this.getZuobiao();// 坐标字符串 |
| | | String shape = this.getShape(); |
| | | String ju_xing = "矩形"; |
| | | if (ju_xing.equals(shape)) { |
| | | String[] zb = zuobiao.split("\\,");// 用逗号分割 |
| | | int x0 = Integer.parseInt(zb[0]); |
| | | int y0 = Integer.parseInt(zb[1]); |
| | | int x2 = Integer.parseInt(zb[2]); |
| | | int y2 = Integer.parseInt(zb[3]); |
| | | int x1 = x2; |
| | | int y1 = y0; |
| | | int x3 = x0; |
| | | int y3 = y2; |
| | | Point2D.Double p0 = new Point2D.Double(x0, y0); |
| | | Point2D.Double p1 = new Point2D.Double(x1, y1); |
| | | Point2D.Double p2 = new Point2D.Double(x2, y2); |
| | | Point2D.Double p3 = new Point2D.Double(x3, y3); |
| | | pts.add(p0); |
| | | pts.add(p1); |
| | | pts.add(p2); |
| | | pts.add(p3); |
| | | } else { |
| | | String[] zb = zuobiao.split("\\,");// 用逗号分割 |
| | | int bian = zb.length/2; |
| | | for (int i = 0; i < bian; i++) { |
| | | // String zbxy = zb[i]; |
| | | String[] xy = Arrays.copyOfRange(zb,2*i,2*i+2);// 以“,”分割字符串从而获得每个点的x和y |
| | | Point2D.Double p = new Point2D.Double(Integer.parseInt(xy[0]), Integer.parseInt(xy[1])); |
| | | pts.add(p); |
| | | } |
| | | |
| | | } |
| | | return pts; |
| | | } |
| | | // public Vector<Point2D.Double> getPts() { |
| | | // Vector<Point2D.Double> pts = new Vector<Point2D.Double>(); |
| | | // String zuobiao = this.getZuobiao();// 坐标字符串 |
| | | // String shape = this.getShape(); |
| | | // String ju_xing = "矩形"; |
| | | // if (ju_xing.equals(shape)) { |
| | | // String[] zb = zuobiao.split("\\,");// 用逗号分割 |
| | | // Double x0 = Double.parseDouble(zb[0]); |
| | | // Double y0 = Double.parseDouble(zb[1]); |
| | | // Double x2 = Double.parseDouble(zb[2]); |
| | | // Double y2 = Double.parseDouble(zb[3]); |
| | | // Double x1 = x2; |
| | | // Double y1 = y0; |
| | | // Double x3 = x0; |
| | | // Double y3 = y2; |
| | | // Point2D.Double p0 = new Point2D.Double(x0, y0); |
| | | // Point2D.Double p1 = new Point2D.Double(x1, y1); |
| | | // Point2D.Double p2 = new Point2D.Double(x2, y2); |
| | | // Point2D.Double p3 = new Point2D.Double(x3, y3); |
| | | // pts.add(p0); |
| | | // pts.add(p1); |
| | | // pts.add(p2); |
| | | // pts.add(p3); |
| | | // } else { |
| | | // String[] zb = zuobiao.split("\\,");// 用逗号分割 |
| | | // int bian = zb.length/2; |
| | | // for (int i = 0; i < bian; i++) { |
| | | //// String zbxy = zb[i]; |
| | | // String[] xy = Arrays.copyOfRange(zb,2*i,2*i+2);// 以“,”分割字符串从而获得每个点的x和y |
| | | // Point2D.Double p = new Point2D.Double(Double.parseDouble(xy[0]), Double.parseDouble(xy[1])); |
| | | // pts.add(p); |
| | | // } |
| | | // |
| | | // } |
| | | // return pts; |
| | | // } |
| | | |
| | | } |