Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / java / CASCADESamplesJni / Aspect_LineStyle.java
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_TypeOfLine;
20 import jcas.Standard_Short;
21 import CASCADESamplesJni.TColQuantity_Array1OfLength;
22 import jcas.Standard_Integer;
23 import jcas.Standard_Boolean;
24
25
26 public class Aspect_LineStyle extends jcas.Object {
27
28  static {
29     System.loadLibrary("CASCADESamplesJni");
30  }
31             
32 public Aspect_LineStyle() {
33    Aspect_LineStyle_Create_1();
34 }
35
36 private final native void Aspect_LineStyle_Create_1();
37
38 public Aspect_LineStyle(short Type) {
39    Aspect_LineStyle_Create_2(Type);
40 }
41
42 private final native void Aspect_LineStyle_Create_2(short Type);
43
44 public Aspect_LineStyle(TColQuantity_Array1OfLength Style) {
45    Aspect_LineStyle_Create_3(Style);
46 }
47
48 private final native void Aspect_LineStyle_Create_3(TColQuantity_Array1OfLength Style);
49
50 native public final Aspect_LineStyle Assign(Aspect_LineStyle Other);
51 final public void SetValues(short Type) {
52     Aspect_LineStyle_SetValues_1(Type);
53 }
54
55 private final native void Aspect_LineStyle_SetValues_1(short Type);
56
57 final public void SetValues(TColQuantity_Array1OfLength Style) {
58     Aspect_LineStyle_SetValues_2(Style);
59 }
60
61 private final native void Aspect_LineStyle_SetValues_2(TColQuantity_Array1OfLength Style);
62
63 native public final short Style();
64 native public final int Length();
65 native public final TColQuantity_Array1OfLength Values();
66 native public final boolean IsEqual(Aspect_LineStyle Other);
67 native public final boolean IsNotEqual(Aspect_LineStyle Other);
68
69
70 public native static void FinalizeValue(long anHID);
71
72 public void finalize() {
73    synchronized(myCasLock) {
74      if ( aVirer != 0 ) FinalizeValue(HID);
75      HID = 0;
76    }
77 }
78
79 }