Revision 10539 branches/v10/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgLayerControl.java

View differences:

DwgLayerControl.java
34 34
 */
35 35
package com.iver.cit.jdwglib.dwg.objects;
36 36

  
37
import java.util.List;
38

  
39
import com.iver.cit.jdwglib.dwg.DwgHandleReference;
37 40
import com.iver.cit.jdwglib.dwg.DwgObject;
38 41

  
39 42
/**
......
43 46
 */
44 47
public class DwgLayerControl extends DwgObject {
45 48
	
46
	/**
47
	 * Read a Layer control in the DWG format Version 15
48
	 * 
49
	 * @param data Array of unsigned bytes obtained from the DWG binary file
50
	 * @param offset The current bit offset where the value begins
51
	 * @throws Exception If an unexpected bit value is found in the DWG file. Occurs
52
	 * 		   when we are looking for LwPolylines.
53
	 */
54
	public void readDwgLayerControlV15(int[] data, int offset) throws Exception {
49
	private DwgHandleReference nullHandle;
50
	private List handles;
51

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

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

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

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

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

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

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

  
56 90
}

Also available in: Unified diff