root / tags / v1_0_2_Build_912 / libraries / libDwg / src / com / iver / cit / jdwglib / dwg / DwgClass.java @ 11422
History | View | Annotate | Download (3.63 KB)
1 | 2896 | jmorell | /* jdwglib. Java Library for reading Dwg files.
|
---|---|---|---|
2 | *
|
||
3 | * Author: Jose Morell Rama (jose.morell@gmail.com).
|
||
4 | * Port from the Pythoncad Dwg library by Art Haas.
|
||
5 | *
|
||
6 | * Copyright (C) 2005 Jose Morell, IVER TI S.A. and Generalitat Valenciana
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU General Public License
|
||
10 | * as published by the Free Software Foundation; either version 2
|
||
11 | * of the License, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | *
|
||
18 | * You should have received a copy of the GNU General Public License
|
||
19 | * along with this program; if not, write to the Free Software
|
||
20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
21 | *
|
||
22 | * For more information, contact:
|
||
23 | *
|
||
24 | * Jose Morell (jose.morell@gmail.com)
|
||
25 | *
|
||
26 | * or
|
||
27 | *
|
||
28 | * IVER TI S.A.
|
||
29 | * C/Salamanca, 50
|
||
30 | * 46005 Valencia
|
||
31 | * Spain
|
||
32 | * +34 963163400
|
||
33 | * dac@iver.es
|
||
34 | */
|
||
35 | package com.iver.cit.jdwglib.dwg; |
||
36 | |||
37 | /**
|
||
38 | 10539 | jmvivo | * Entry in the CLASSES section of a dwg file.
|
39 | * @author azabala
|
||
40 | 2896 | jmorell | */
|
41 | public class DwgClass { |
||
42 | 10539 | jmvivo | |
43 | int classNum;
|
||
44 | int version;
|
||
45 | String appName;
|
||
46 | String cPlusPlusName;
|
||
47 | String dxfName;
|
||
48 | boolean isZombie;
|
||
49 | int id;
|
||
50 | 2896 | jmorell | |
51 | 10539 | jmvivo | |
52 | public DwgClass(int classNum, int version, String appName, |
||
53 | String cPlusPlusName, String dxfName, boolean isZombie, int id){ |
||
54 | |||
55 | this.classNum = classNum;
|
||
56 | this.version = version;
|
||
57 | this.appName = appName;
|
||
58 | this.cPlusPlusName = cPlusPlusName;
|
||
59 | this.dxfName = dxfName;
|
||
60 | this.isZombie = isZombie;
|
||
61 | this.id = id;
|
||
62 | } |
||
63 | |||
64 | public String toString(){ |
||
65 | String solution = ""; |
||
66 | solution += "classNum ="+classNum;
|
||
67 | solution += ", version = "+version;
|
||
68 | solution += ", appName = "+appName;
|
||
69 | solution += ", c++Name = "+cPlusPlusName;
|
||
70 | solution += ", dxfName = "+dxfName;
|
||
71 | solution += ", isZombie = " + isZombie;
|
||
72 | solution += ", id = " + id;
|
||
73 | return solution;
|
||
74 | } |
||
75 | |||
76 | |||
77 | |||
78 | |||
79 | /**
|
||
80 | * @return Returns the appName.
|
||
81 | */
|
||
82 | public String getAppName() { |
||
83 | return appName;
|
||
84 | } |
||
85 | /**
|
||
86 | * @param appName The appName to set.
|
||
87 | */
|
||
88 | public void setAppName(String appName) { |
||
89 | this.appName = appName;
|
||
90 | } |
||
91 | /**
|
||
92 | * @return Returns the classNum.
|
||
93 | */
|
||
94 | public int getClassNum() { |
||
95 | return classNum;
|
||
96 | } |
||
97 | /**
|
||
98 | * @param classNum The classNum to set.
|
||
99 | */
|
||
100 | public void setClassNum(int classNum) { |
||
101 | this.classNum = classNum;
|
||
102 | } |
||
103 | /**
|
||
104 | * @return Returns the cPlusPlusName.
|
||
105 | */
|
||
106 | public String getCPlusPlusName() { |
||
107 | return cPlusPlusName;
|
||
108 | } |
||
109 | /**
|
||
110 | * @param plusPlusName The cPlusPlusName to set.
|
||
111 | */
|
||
112 | public void setCPlusPlusName(String plusPlusName) { |
||
113 | cPlusPlusName = plusPlusName; |
||
114 | } |
||
115 | /**
|
||
116 | * @return Returns the dxfName.
|
||
117 | */
|
||
118 | public String getDxfName() { |
||
119 | return dxfName;
|
||
120 | } |
||
121 | /**
|
||
122 | * @param dxfName The dxfName to set.
|
||
123 | */
|
||
124 | public void setDxfName(String dxfName) { |
||
125 | this.dxfName = dxfName;
|
||
126 | } |
||
127 | /**
|
||
128 | * @return Returns the id.
|
||
129 | */
|
||
130 | public int getId() { |
||
131 | return id;
|
||
132 | } |
||
133 | /**
|
||
134 | * @param id The id to set.
|
||
135 | */
|
||
136 | public void setId(int id) { |
||
137 | this.id = id;
|
||
138 | } |
||
139 | /**
|
||
140 | * @return Returns the isZombie.
|
||
141 | */
|
||
142 | public boolean isZombie() { |
||
143 | return isZombie;
|
||
144 | } |
||
145 | /**
|
||
146 | * @param isZombie The isZombie to set.
|
||
147 | */
|
||
148 | public void setZombie(boolean isZombie) { |
||
149 | this.isZombie = isZombie;
|
||
150 | } |
||
151 | /**
|
||
152 | * @return Returns the version.
|
||
153 | */
|
||
154 | public int getVersion() { |
||
155 | return version;
|
||
156 | } |
||
157 | /**
|
||
158 | * @param version The version to set.
|
||
159 | */
|
||
160 | public void setVersion(int version) { |
||
161 | this.version = version;
|
||
162 | } |
||
163 | |||
164 | |||
165 | |||
166 | |||
167 | |||
168 | |||
169 | |||
170 | |||
171 | 2896 | jmorell | } |