Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libDwg / src / org / gvsig / dwg / lib / objects / DwgLayerControl.java @ 28969

History | View | Annotate | Download (2.18 KB)

1
/* 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 org.gvsig.dwg.lib.objects;
36

    
37
import java.util.List;
38

    
39
import org.gvsig.dwg.lib.DwgHandleReference;
40
import org.gvsig.dwg.lib.DwgObject;
41

    
42

    
43
/**
44
 * The DwgLayerControl class represents a DWG Layer control
45
 * 
46
 * @author jmorell
47
 */
48
public class DwgLayerControl extends DwgObject {
49
        
50
        private DwgHandleReference nullHandle;
51
        private List handles;
52

    
53
        public DwgLayerControl(int index) {
54
                super(index);
55
                // TODO Auto-generated constructor stub
56
        }
57

    
58
        public void setNullHandle(DwgHandleReference handle) {
59
                this.nullHandle = handle;
60
        }
61

    
62
        public void setCode2Handles(List handles) {
63
                this.handles = handles;
64
        }
65

    
66
        public List getHandles() {
67
                return handles;
68
        }
69

    
70
        public void setHandles(List handles) {
71
                this.handles = handles;
72
        }
73

    
74
        public DwgHandleReference getNullHandle() {
75
                return nullHandle;
76
        }
77
        public Object clone(){
78
                DwgLayerControl obj = new DwgLayerControl(index);
79
                this.fill(obj);
80
                return obj;
81
        }
82
        
83
        protected void fill(DwgObject obj){
84
                super.fill(obj);
85
                DwgLayerControl myObj = (DwgLayerControl)obj;
86

    
87
                myObj.setHandles(handles);
88
                myObj.setNullHandle(nullHandle);
89
        }
90

    
91
}