1 // Java Native Class from Cas.Cade
2 // Copyright (C) 1991,1999 by
4 // MATRA DATAVISION, FRANCE
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.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
17 package CASCADESamplesJni;
19 import jcas.Standard_Integer;
20 import CASCADESamplesJni.Aspect_LineStyle;
21 import jcas.Standard_Boolean;
24 public class Aspect_TypeMapEntry extends jcas.Object {
27 System.loadLibrary("CASCADESamplesJni");
30 public Aspect_TypeMapEntry() {
31 Aspect_TypeMapEntry_Create_1();
34 private final native void Aspect_TypeMapEntry_Create_1();
36 public Aspect_TypeMapEntry(int index,Aspect_LineStyle style) {
37 Aspect_TypeMapEntry_Create_2(index,style);
40 private final native void Aspect_TypeMapEntry_Create_2(int index,Aspect_LineStyle style);
42 public Aspect_TypeMapEntry(Aspect_TypeMapEntry entry) {
43 Aspect_TypeMapEntry_Create_3(entry);
46 private final native void Aspect_TypeMapEntry_Create_3(Aspect_TypeMapEntry entry);
48 final public void SetValue(int index,Aspect_LineStyle style) {
49 Aspect_TypeMapEntry_SetValue_1(index,style);
52 private final native void Aspect_TypeMapEntry_SetValue_1(int index,Aspect_LineStyle style);
54 final public void SetValue(Aspect_TypeMapEntry entry) {
55 Aspect_TypeMapEntry_SetValue_2(entry);
58 private final native void Aspect_TypeMapEntry_SetValue_2(Aspect_TypeMapEntry entry);
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();
69 public native static void FinalizeValue(long anHID);
71 public void finalize() {
72 synchronized(myCasLock) {
73 if ( aVirer != 0 ) FinalizeValue(HID);