7fd59977 |
1 | // Java Native Class from Cas.Cade |
2 | // Copyright (C) 1991,1999 by |
3 | // |
4 | // MATRA DATAVISION, FRANCE |
5 | // |
6 | // This software is furnished in accordance with the terms and conditions |
7 | // of the contract and with the inclusion of the above copyright notice. |
8 | // This software or any other copy thereof may not be provided or otherwise |
9 | // be made available to any other person. No title to an ownership of the |
10 | // software is hereby transferred. |
11 | // |
12 | // At the termination of the contract, the software and all copies of this |
13 | // software must be deleted. |
14 | // |
15 | |
16 | |
17 | package CASCADESamplesJni; |
18 | |
19 | import CASCADESamplesJni.Aspect_TypeOfFont; |
20 | import jcas.Standard_Real; |
21 | import jcas.Standard_Boolean; |
22 | import jcas.Standard_Short; |
23 | import jcas.Standard_CString; |
24 | import jcas.Standard_Integer; |
25 | |
26 | |
27 | public class Aspect_FontStyle extends jcas.Object { |
28 | |
29 | static { |
30 | System.loadLibrary("CASCADESamplesJni"); |
31 | } |
32 | |
33 | public Aspect_FontStyle() { |
34 | Aspect_FontStyle_Create_1(); |
35 | } |
36 | |
37 | private final native void Aspect_FontStyle_Create_1(); |
38 | |
39 | public Aspect_FontStyle(short Type,double Size,double Slant,boolean CapsHeight) { |
40 | Aspect_FontStyle_Create_2(Type,Size,Slant,CapsHeight); |
41 | } |
42 | |
43 | private final native void Aspect_FontStyle_Create_2(short Type,double Size,double Slant,boolean CapsHeight); |
44 | |
45 | public Aspect_FontStyle(Standard_CString Style,double Size,double Slant,boolean CapsHeight) { |
46 | Aspect_FontStyle_Create_3(Style,Size,Slant,CapsHeight); |
47 | } |
48 | |
49 | private final native void Aspect_FontStyle_Create_3(Standard_CString Style,double Size,double Slant,boolean CapsHeight); |
50 | |
51 | public Aspect_FontStyle(Standard_CString Style) { |
52 | Aspect_FontStyle_Create_4(Style); |
53 | } |
54 | |
55 | private final native void Aspect_FontStyle_Create_4(Standard_CString Style); |
56 | |
57 | native public final Aspect_FontStyle Assign(Aspect_FontStyle Other); |
58 | final public void SetValues(short Type,double Size,double Slant,boolean CapsHeight) { |
59 | Aspect_FontStyle_SetValues_1(Type,Size,Slant,CapsHeight); |
60 | } |
61 | |
62 | private final native void Aspect_FontStyle_SetValues_1(short Type,double Size,double Slant,boolean CapsHeight); |
63 | |
64 | final public void SetValues(Standard_CString Style,double Size,double Slant,boolean CapsHeight) { |
65 | Aspect_FontStyle_SetValues_2(Style,Size,Slant,CapsHeight); |
66 | } |
67 | |
68 | private final native void Aspect_FontStyle_SetValues_2(Standard_CString Style,double Size,double Slant,boolean CapsHeight); |
69 | |
70 | final public void SetValues(Standard_CString Style) { |
71 | Aspect_FontStyle_SetValues_3(Style); |
72 | } |
73 | |
74 | private final native void Aspect_FontStyle_SetValues_3(Standard_CString Style); |
75 | |
76 | native public final void SetFamily(Standard_CString aName); |
77 | native public final void SetWeight(Standard_CString aName); |
78 | native public final void SetRegistry(Standard_CString aName); |
79 | native public final void SetEncoding(Standard_CString aName); |
80 | native public final short Style(); |
81 | native public final int Length(); |
82 | native public final Standard_CString Value(); |
83 | native public final double Size(); |
84 | native public final double Slant(); |
85 | native public final boolean CapsHeight(); |
86 | native public final Standard_CString AliasName(); |
87 | native public final Standard_CString FullName(); |
88 | native public final Standard_CString Foundry(); |
89 | native public final Standard_CString Family(); |
90 | native public final Standard_CString Weight(); |
91 | native public final Standard_CString Registry(); |
92 | native public final Standard_CString Encoding(); |
93 | native public final Standard_CString SSlant(); |
94 | native public final Standard_CString SWidth(); |
95 | native public final Standard_CString SStyle(); |
96 | native public final Standard_CString SPixelSize(); |
97 | native public final Standard_CString SPointSize(); |
98 | native public final Standard_CString SResolutionX(); |
99 | native public final Standard_CString SResolutionY(); |
100 | native public final Standard_CString SSpacing(); |
101 | native public final Standard_CString SAverageWidth(); |
102 | native public final void Dump(); |
103 | native public final boolean IsEqual(Aspect_FontStyle Other); |
104 | native public final boolean IsNotEqual(Aspect_FontStyle Other); |
105 | |
106 | |
107 | public native static void FinalizeValue(long anHID); |
108 | |
109 | public void finalize() { |
110 | synchronized(myCasLock) { |
111 | if ( aVirer != 0 ) FinalizeValue(HID); |
112 | HID = 0; |
113 | } |
114 | } |
115 | |
116 | } |