KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hdf > model > hdftypes > CharacterProperties


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18
19
20 package org.apache.poi.hdf.model.hdftypes;
21
22 import org.apache.poi.hdf.model.hdftypes.definitions.CHPAbstractType;
23 /**
24  * Properties for character runs.
25  *
26  * @author Ryan Ackley
27  */

28
29 public class CharacterProperties extends CHPAbstractType implements Cloneable JavaDoc
30 {
31
32   public CharacterProperties()
33   {
34     setDttmRMark(new short[2]);
35     setDttmRMarkDel(new short[2]);
36     setXstDispFldRMark(new byte[32]);
37     setBrc(new short[2]);;
38     setHps(20);
39     setFcPic(-1);
40     setIstd(10);
41     setLidFE(0x0400);
42     setLidDefault(0x0400);
43     setWCharScale(100);
44     //setFUsePgsuSettings(-1);
45
}
46   /**
47    * Used to make a deep copy of this object.
48    */

49   public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc
50   {
51     CharacterProperties clone = (CharacterProperties)super.clone();
52     clone.setBrc(new short[2]);
53     System.arraycopy(getBrc(), 0, clone.getBrc(), 0, 2);
54     System.arraycopy(getDttmRMark(), 0, clone.getDttmRMark(), 0, 2);
55     System.arraycopy(getDttmRMarkDel(), 0, clone.getDttmRMarkDel(), 0, 2);
56     System.arraycopy(getXstDispFldRMark(), 0, clone.getXstDispFldRMark(), 0, 32);
57     return clone;
58   }
59 }
60
Popular Tags