-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGLQuadCurve.bas
232 lines (223 loc) · 6.91 KB
/
GLQuadCurve.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
B4J=true
Group=Default Group
ModulesStructureVersion=1
Type=Class
Version=5.51
@EndOfDesignText@
'Class Module
Sub Class_Globals
'Private fx As JFX ' Uncomment if required for B4j only
Private TJO As JavaObject
Private mTag As Object
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
End Sub
'Creates an empty instance of QuadCurve.
Public Sub Create()
'If a JavaObject has been passed, you may need to create it here and remove the parameter
TJO.InitializeNewInstance("javafx.scene.shape.QuadCurve",Null)
End Sub
'Creates a new instance of QuadCurve.
Public Sub Create2(StartX As Double, StartY As Double, ControlX As Double, ControlY As Double, EndX As Double, EndY As Double)
'If a JavaObject has been passed, you may need to create it here and remove the parameter
TJO.InitializeNewInstance("javafx.scene.shape.QuadCurve",Array As Object(StartX, StartY, ControlX, ControlY, EndX, EndY))
End Sub
'Gets the value of the property controlX.
Public Sub getControlX As Double
Return TJO.RunMethod("getControlX",Null)
End Sub
'Gets the value of the property controlY.
Public Sub getControlY As Double
Return TJO.RunMethod("getControlY",Null)
End Sub
'Gets the value of the property endX.
Public Sub getEndX As Double
Return TJO.RunMethod("getEndX",Null)
End Sub
'Gets the value of the property endY.
Public Sub getEndY As Double
Return TJO.RunMethod("getEndY",Null)
End Sub
'Gets the value of the property startX.
Public Sub getStartX As Double
Return TJO.RunMethod("getStartX",Null)
End Sub
'Gets the value of the property startY.
Public Sub getStartY As Double
Return TJO.RunMethod("getStartY",Null)
End Sub
'Sets the value of the property controlX.
Public Sub setControlX(Value As Double)
TJO.RunMethod("setControlX",Array As Object(Value))
End Sub
'Sets the value of the property controlY.
Public Sub setControlY(Value As Double)
TJO.RunMethod("setControlY",Array As Object(Value))
End Sub
'Sets the value of the property endX.
Public Sub setEndX(Value As Double)
TJO.RunMethod("setEndX",Array As Object(Value))
End Sub
'Sets the value of the property endY.
Public Sub setEndY(Value As Double)
TJO.RunMethod("setEndY",Array As Object(Value))
End Sub
'Sets the value of the property startX.
Public Sub setStartX(Value As Double)
TJO.RunMethod("setStartX",Array As Object(Value))
End Sub
'Sets the value of the property startY.
Public Sub setStartY(Value As Double)
TJO.RunMethod("setStartY",Array As Object(Value))
End Sub
Public Sub GetObject As Object
Return TJO
End Sub
Public Sub SetObject(Obj As Object)
TJO = Obj
End Sub
Public Sub AsNode As Node
Return TJO
End Sub
Public Sub AsB4xView As B4XView
Return TJO
End Sub
Public Sub getJavaObject As JavaObject
Return TJO
End Sub
Sub setID(ID As String)
TJO.RunMethod("setId",Array(ID))
End Sub
Sub getID As String
Return TJO.RunMethod("getId",Null)
End Sub
Sub setTag(Tag As Object)
mTag = Tag
End Sub
Sub getTag As Object
Return mTag
End Sub
'Inherited Methods
'Gets the value of the property fill.
Public Sub getFill As Object
Return TJO.RunMethod("getFill",Null)
End Sub
'Gets the value of the property stroke.
Public Sub getStroke As Object
Return TJO.RunMethod("getStroke",Null)
End Sub
'Defines the array representing the lengths of the dash segments.
Public Sub getStrokeDashArray As List
Return TJO.RunMethod("getStrokeDashArray",Null)
End Sub
'Gets the value of the property strokeDashOffset.
Public Sub getStrokeDashOffset As Double
Return TJO.RunMethod("getStrokeDashOffset",Null)
End Sub
'Gets the value of the property strokeLineCap.
Public Sub getStrokeLineCap As String
Return TJO.RunMethodJO("getStrokeLineCap",Null).RunMethod("toString",Null)
End Sub
'Gets the value of the property strokeLineJoin.
Public Sub getStrokeLineJoin As String
Return TJO.RunMethodJO("getStrokeLineJoin",Null).RunMethod("toString",Null)
End Sub
'Gets the value of the property strokeMiterLimit.
Public Sub getStrokeMiterLimit As Double
Return TJO.RunMethod("getStrokeMiterLimit",Null)
End Sub
'Gets the value of the property strokeType.
Public Sub getStrokeType As String
Return TJO.RunMethodJO("getStrokeType",Null).RunMethod("toString",Null)
End Sub
'Gets the value of the property strokeWidth.
Public Sub getStrokeWidth As Double
Return TJO.RunMethod("getStrokeWidth",Null)
End Sub
'Gets the value of the property smooth.
Public Sub IsSmooth As Boolean
Return TJO.RunMethod("isSmooth",Null)
End Sub
'Sets the value of the property fill.
Public Sub setFill(Value As Object)
TJO.RunMethod("setFill",Array As Object(Value))
End Sub
'Sets the value of the property smooth.
Public Sub setSmooth(Value As Boolean)
TJO.RunMethod("setSmooth",Array As Object(Value))
End Sub
'Sets the value of the property stroke.
Public Sub setStroke(Value As Object)
TJO.RunMethod("setStroke",Array As Object(Value))
End Sub
'Sets the value of the property strokeDashOffset.
Public Sub setStrokeDashOffset(Value As Double)
TJO.RunMethod("setStrokeDashOffset",Array As Object(Value))
End Sub
'Sets the value of the property strokeLineCap.
Public Sub setStrokeLineCap(Value As String)
Dim S As GLShape
S.Initialize
S.SetObject(TJO)
S.setStrokeLineCap(Value)
End Sub
'Sets the value of the property strokeLineJoin.
Public Sub setStrokeLineJoin(Value As String)
Dim S As GLShape
S.Initialize
S.SetObject(TJO)
S.setStrokeLineJoin(Value)
End Sub
'Sets the value of the property strokeMiterLimit.
Public Sub setStrokeMiterLimit(Value As Double)
TJO.RunMethod("setStrokeMiterLimit",Array As Object(Value))
End Sub
'Sets the value of the property strokeType.
Public Sub setStrokeType(Value As String)
Dim S As GLShape
S.Initialize
S.SetObject(TJO)
S.setStrokeType(Value)
End Sub
'Sets the value of the property strokeWidth.
Public Sub setStrokeWidth(Value As Double)
TJO.RunMethod("setStrokeWidth",Array As Object(Value))
End Sub
'Returns a new Shape which is created by subtracting the specified second shape from the first shape.
Public Sub Subtract(Shape1 As GLQuadCurve, Shape2 As GLQuadCurve) As GLShape
Dim S As GLShape
S.Initialize
Return S.Subtract(Shape1,Shape2)
End Sub
'Returns a new Shape which is created as a union of the specified input shapes.
Public Sub Union(Shape1 As GLQuadCurve, Shape2 As GLQuadCurve) As GLShape
Dim S As GLShape
S.Initialize
Return S.Union(Shape1,Shape2)
End Sub
'Returns a new Shape which is created as an intersection of the specified input shapes.
Public Sub Intersect(Shape1 As GLQuadCurve, Shape2 As GLQuadCurve) As GLShape
Dim S As GLShape
S.Initialize
Return S.Intersect(Shape1,Shape2)
End Sub
Public Sub getPrefWidth As Int
Dim H As Double = -1
Return TJO.RunMethod("prefWidth",Array(H))
End Sub
Public Sub getPrefHeight As Int
Dim H As Double = -1
Return TJO.RunMethod("prefHeight",Array(H))
End Sub
Public Sub getMinWidth As Int
Dim H As Double = -1
Return TJO.RunMethod("prefWidth",Array(H))
End Sub
Public Sub getMinHeight As Int
Dim H As Double = -1
Return TJO.RunMethod("prefHeight",Array(H))
End Sub
Public Sub BringToFront
TJO.RunMethod("toFront",Null)
End Sub