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 jcas.Standard_Integer; |
20 | import CASCADESamplesJni.Aspect_LineStyle; |
21 | import jcas.Standard_Boolean; |
22 | |
23 | |
24 | public class Aspect_TypeMapEntry extends jcas.Object { |
25 | |
26 | static { |
27 | System.loadLibrary("CASCADESamplesJni"); |
28 | } |
29 | |
30 | public Aspect_TypeMapEntry() { |
31 | Aspect_TypeMapEntry_Create_1(); |
32 | } |
33 | |
34 | private final native void Aspect_TypeMapEntry_Create_1(); |
35 | |
36 | public Aspect_TypeMapEntry(int index,Aspect_LineStyle style) { |
37 | Aspect_TypeMapEntry_Create_2(index,style); |
38 | } |
39 | |
40 | private final native void Aspect_TypeMapEntry_Create_2(int index,Aspect_LineStyle style); |
41 | |
42 | public Aspect_TypeMapEntry(Aspect_TypeMapEntry entry) { |
43 | Aspect_TypeMapEntry_Create_3(entry); |
44 | } |
45 | |
46 | private final native void Aspect_TypeMapEntry_Create_3(Aspect_TypeMapEntry entry); |
47 | |
48 | final public void SetValue(int index,Aspect_LineStyle style) { |
49 | Aspect_TypeMapEntry_SetValue_1(index,style); |
50 | } |
51 | |
52 | private final native void Aspect_TypeMapEntry_SetValue_1(int index,Aspect_LineStyle style); |
53 | |
54 | final public void SetValue(Aspect_TypeMapEntry entry) { |
55 | Aspect_TypeMapEntry_SetValue_2(entry); |
56 | } |
57 | |
58 | private final native void Aspect_TypeMapEntry_SetValue_2(Aspect_TypeMapEntry entry); |
59 | |
60 | native public final void SetType(Aspect_LineStyle Style); |
61 | native public final Aspect_LineStyle Type(); |
62 | native public final void SetIndex(int index); |
63 | native public final int Index(); |
64 | native public final void Free(); |
65 | native public final boolean IsAllocated(); |
66 | native public final void Dump(); |
67 | |
68 | |
69 | public native static void FinalizeValue(long anHID); |
70 | |
71 | public void finalize() { |
72 | synchronized(myCasLock) { |
73 | if ( aVirer != 0 ) FinalizeValue(HID); |
74 | HID = 0; |
75 | } |
76 | } |
77 | |
78 | } |