Revision 10174 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgDictionaryVar.java
DwgDictionaryVar.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.2 2007-01-31 17:56:40 fdiaz |
|
48 |
* Revision 1.3 2007-02-07 12:44:27 fdiaz |
|
49 |
* A?adido o modificado el metodo clone para que el DwgObject se encargue de las propiedades comunes a todos los objetos. |
|
50 |
* A?adido el metodo fill. |
|
51 |
* |
|
52 |
* Revision 1.2 2007/01/31 17:56:40 fdiaz |
|
49 | 53 |
* Refactorizacion para usar la clase DwgHandleReference |
50 | 54 |
* |
51 | 55 |
* Revision 1.1 2007/01/30 19:40:23 azabala |
... | ... | |
67 | 71 |
super(index); |
68 | 72 |
} |
69 | 73 |
|
70 |
public void setIntVal(int intval) { |
|
71 |
this.intval = intval; |
|
72 |
} |
|
73 | 74 |
|
74 |
|
|
75 | 75 |
public void setText(String text) { |
76 | 76 |
this.text = text; |
77 | 77 |
} |
... | ... | |
96 | 96 |
public String getText() { |
97 | 97 |
return text; |
98 | 98 |
} |
99 |
public Object clone(){ |
|
100 |
DwgDictionaryVar obj = new DwgDictionaryVar(index); |
|
101 |
this.fill(obj); |
|
102 |
return obj; |
|
103 |
} |
|
104 |
|
|
105 |
protected void fill(DwgObject obj){ |
|
106 |
super.fill(obj); |
|
107 |
DwgDictionaryVar myObj = (DwgDictionaryVar)obj; |
|
108 |
|
|
109 |
myObj.setIntval(intval); |
|
110 |
myObj.setParentHandle(parentHandle); |
|
111 |
myObj.setText(text); |
|
112 |
} |
|
113 |
|
|
99 | 114 |
} |
100 | 115 |
|
Also available in: Unified diff