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.Quantity_Color; |
20 | |
21 | |
22 | public class Aspect_Background extends jcas.Object { |
23 | |
24 | static { |
25 | System.loadLibrary("CASCADESamplesJni"); |
26 | } |
27 | |
28 | public Aspect_Background() { |
29 | Aspect_Background_Create_1(); |
30 | } |
31 | |
32 | private final native void Aspect_Background_Create_1(); |
33 | |
34 | public Aspect_Background(Quantity_Color AColor) { |
35 | Aspect_Background_Create_2(AColor); |
36 | } |
37 | |
38 | private final native void Aspect_Background_Create_2(Quantity_Color AColor); |
39 | |
40 | native public final void SetColor(Quantity_Color AColor); |
41 | native public final Quantity_Color Color(); |
42 | |
43 | |
44 | public native static void FinalizeValue(long anHID); |
45 | |
46 | public void finalize() { |
47 | synchronized(myCasLock) { |
48 | if ( aVirer != 0 ) FinalizeValue(HID); |
49 | HID = 0; |
50 | } |
51 | } |
52 | |
53 | } |