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