001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005 006package armyc2.c2sd.JavaLineArray; 007 008/** 009 * Class to provide a Point object with a linestyle to facilitate drawing. 010 * @author Michael Deutch 011 */ 012public class POINT2 013{ 014 public double x; 015 public double y; 016 public int style; 017 public int segment; 018 public POINT2(double x, double y) 019 { 020 this.x=x; 021 this.y=y; 022 this.style=0; 023 } 024 public POINT2(double x, double y, int segment, int style) 025 { 026 this.x=x; 027 this.y=y; 028 this.segment=segment; 029 this.style=style; 030 } 031 public POINT2(double x, double y, int style) 032 { 033 this.x=x; 034 this.y=y; 035 this.style=style; 036 } 037 public POINT2(POINT2 pt) 038 { 039 this.x=pt.x; 040 this.y=pt.y; 041 this.segment=pt.segment; 042 this.style=pt.style; 043 } 044 public POINT2() 045 { 046 this.x=0; 047 this.y=0; 048 this.style=0; 049 } 050} 051