125 setEndY(endY);
126 }
127
128 public final void setStartX(double value) {
129 if (startX != null || value != 0.0) {
130 startXProperty().set(value);
131 }
132 }
133
134 public final double getStartX() {
135 return startX == null ? 0.0 : startX.get();
136 }
137
138 public final DoubleProperty startXProperty() {
139 if (startX == null) {
140 startX = new DoublePropertyBase() {
141
142 @Override
143 public void invalidated() {
144 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
145 impl_geomChanged();
146 }
147
148 @Override
149 public Object getBean() {
150 return CubicCurve.this;
151 }
152
153 @Override
154 public String getName() {
155 return "startX";
156 }
157 };
158 }
159 return startX;
160 }
161
162 /**
163 * Defines the Y coordinate of the start point of the cubic curve segment.
164 *
165 * @defaultValue 0.0
166 */
167 private DoubleProperty startY;
168
169 public final void setStartY(double value) {
170 if (startY != null || value != 0.0) {
171 startYProperty().set(value);
172 }
173 }
174
175 public final double getStartY() {
176 return startY == null ? 0.0 : startY.get();
177 }
178
179 public final DoubleProperty startYProperty() {
180 if (startY == null) {
181 startY = new DoublePropertyBase() {
182
183 @Override
184 public void invalidated() {
185 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
186 impl_geomChanged();
187 }
188
189 @Override
190 public Object getBean() {
191 return CubicCurve.this;
192 }
193
194 @Override
195 public String getName() {
196 return "startY";
197 }
198 };
199 }
200 return startY;
201 }
202
203 /**
204 * Defines the X coordinate of the first control point
205 * of the cubic curve segment.
206 *
208 */
209 private DoubleProperty controlX1;
210
211 public final void setControlX1(double value) {
212 if (controlX1 != null || value != 0.0) {
213 controlX1Property().set(value);
214 }
215 }
216
217 public final double getControlX1() {
218 return controlX1 == null ? 0.0 : controlX1.get();
219 }
220
221 public final DoubleProperty controlX1Property() {
222 if (controlX1 == null) {
223 controlX1 = new DoublePropertyBase() {
224
225 @Override
226 public void invalidated() {
227 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
228 impl_geomChanged();
229 }
230
231 @Override
232 public Object getBean() {
233 return CubicCurve.this;
234 }
235
236 @Override
237 public String getName() {
238 return "controlX1";
239 }
240 };
241 }
242 return controlX1;
243 }
244
245 /**
246 * Defines the Y coordinate of the first control point
247 * of the cubic curve segment.
248 *
250 */
251 private DoubleProperty controlY1;
252
253 public final void setControlY1(double value) {
254 if (controlY1 != null || value != 0.0) {
255 controlY1Property().set(value);
256 }
257 }
258
259 public final double getControlY1() {
260 return controlY1 == null ? 0.0 : controlY1.get();
261 }
262
263 public final DoubleProperty controlY1Property() {
264 if (controlY1 == null) {
265 controlY1 = new DoublePropertyBase() {
266
267 @Override
268 public void invalidated() {
269 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
270 impl_geomChanged();
271 }
272
273 @Override
274 public Object getBean() {
275 return CubicCurve.this;
276 }
277
278 @Override
279 public String getName() {
280 return "controlY1";
281 }
282 };
283 }
284 return controlY1;
285 }
286
287 /**
288 * Defines the X coordinate of the second control point
289 * of the cubic curve segment.
290 *
292 */
293 private DoubleProperty controlX2;
294
295 public final void setControlX2(double value) {
296 if (controlX2 != null || value != 0.0) {
297 controlX2Property().set(value);
298 }
299 }
300
301 public final double getControlX2() {
302 return controlX2 == null ? 0.0 : controlX2.get();
303 }
304
305 public final DoubleProperty controlX2Property() {
306 if (controlX2 == null) {
307 controlX2 = new DoublePropertyBase() {
308
309 @Override
310 public void invalidated() {
311 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
312 impl_geomChanged();
313 }
314
315 @Override
316 public Object getBean() {
317 return CubicCurve.this;
318 }
319
320 @Override
321 public String getName() {
322 return "controlX2";
323 }
324 };
325 }
326 return controlX2;
327 }
328
329 /**
330 * Defines the Y coordinate of the second control point
331 * of the cubic curve segment.
332 *
334 */
335 private DoubleProperty controlY2;
336
337 public final void setControlY2(double value) {
338 if (controlY2 != null || value != 0.0) {
339 controlY2Property().set(value);
340 }
341 }
342
343 public final double getControlY2() {
344 return controlY2 == null ? 0.0 : controlY2.get();
345 }
346
347 public final DoubleProperty controlY2Property() {
348 if (controlY2 == null) {
349 controlY2 = new DoublePropertyBase() {
350
351 @Override
352 public void invalidated() {
353 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
354 impl_geomChanged();
355 }
356
357 @Override
358 public Object getBean() {
359 return CubicCurve.this;
360 }
361
362 @Override
363 public String getName() {
364 return "controlY2";
365 }
366 };
367 }
368 return controlY2;
369 }
370
371 /**
372 * Defines the X coordinate of the end point of the cubic curve segment.
373 *
374 * @defaultValue 0.0
375 */
376 private DoubleProperty endX;
377
378 public final void setEndX(double value) {
379 if (endX != null || value != 0.0) {
380 endXProperty().set(value);
381 }
382 }
383
384 public final double getEndX() {
385 return endX == null ? 0.0 : endX.get();
386 }
387
388 public final DoubleProperty endXProperty() {
389 if (endX == null) {
390 endX = new DoublePropertyBase() {
391
392 @Override
393 public void invalidated() {
394 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
395 impl_geomChanged();
396 }
397
398 @Override
399 public Object getBean() {
400 return CubicCurve.this;
401 }
402
403 @Override
404 public String getName() {
405 return "endX";
406 }
407 };
408 }
409 return endX;
410 }
411
412 /**
413 * Defines the Y coordinate of the end point of the cubic curve segment.
414 *
415 * @defaultValue 0.0
416 */
417 private DoubleProperty endY;
418
419 public final void setEndY(double value) {
420 if (endY != null || value != 0.0) {
421 endYProperty().set(value);
422 }
423 }
424
425 public final double getEndY() {
426 return endY == null ? 0.0 : endY.get();
427 }
428
429 public final DoubleProperty endYProperty() {
430 if (endY == null) {
431 endY = new DoublePropertyBase() {
432
433 @Override
434 public void invalidated() {
435 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
436 impl_geomChanged();
437 }
438
439 @Override
440 public Object getBean() {
441 return CubicCurve.this;
442 }
443
444 @Override
445 public String getName() {
446 return "endY";
447 }
448 };
449 }
450 return endY;
451 }
452
453 /*
454 * Note: This method MUST only be called via its accessor method.
455 */
456 private CubicCurve2D doConfigShape() {
|
125 setEndY(endY);
126 }
127
128 public final void setStartX(double value) {
129 if (startX != null || value != 0.0) {
130 startXProperty().set(value);
131 }
132 }
133
134 public final double getStartX() {
135 return startX == null ? 0.0 : startX.get();
136 }
137
138 public final DoubleProperty startXProperty() {
139 if (startX == null) {
140 startX = new DoublePropertyBase() {
141
142 @Override
143 public void invalidated() {
144 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
145 NodeHelper.geomChanged(CubicCurve.this);
146 }
147
148 @Override
149 public Object getBean() {
150 return CubicCurve.this;
151 }
152
153 @Override
154 public String getName() {
155 return "startX";
156 }
157 };
158 }
159 return startX;
160 }
161
162 /**
163 * Defines the Y coordinate of the start point of the cubic curve segment.
164 *
165 * @defaultValue 0.0
166 */
167 private DoubleProperty startY;
168
169 public final void setStartY(double value) {
170 if (startY != null || value != 0.0) {
171 startYProperty().set(value);
172 }
173 }
174
175 public final double getStartY() {
176 return startY == null ? 0.0 : startY.get();
177 }
178
179 public final DoubleProperty startYProperty() {
180 if (startY == null) {
181 startY = new DoublePropertyBase() {
182
183 @Override
184 public void invalidated() {
185 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
186 NodeHelper.geomChanged(CubicCurve.this);
187 }
188
189 @Override
190 public Object getBean() {
191 return CubicCurve.this;
192 }
193
194 @Override
195 public String getName() {
196 return "startY";
197 }
198 };
199 }
200 return startY;
201 }
202
203 /**
204 * Defines the X coordinate of the first control point
205 * of the cubic curve segment.
206 *
208 */
209 private DoubleProperty controlX1;
210
211 public final void setControlX1(double value) {
212 if (controlX1 != null || value != 0.0) {
213 controlX1Property().set(value);
214 }
215 }
216
217 public final double getControlX1() {
218 return controlX1 == null ? 0.0 : controlX1.get();
219 }
220
221 public final DoubleProperty controlX1Property() {
222 if (controlX1 == null) {
223 controlX1 = new DoublePropertyBase() {
224
225 @Override
226 public void invalidated() {
227 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
228 NodeHelper.geomChanged(CubicCurve.this);
229 }
230
231 @Override
232 public Object getBean() {
233 return CubicCurve.this;
234 }
235
236 @Override
237 public String getName() {
238 return "controlX1";
239 }
240 };
241 }
242 return controlX1;
243 }
244
245 /**
246 * Defines the Y coordinate of the first control point
247 * of the cubic curve segment.
248 *
250 */
251 private DoubleProperty controlY1;
252
253 public final void setControlY1(double value) {
254 if (controlY1 != null || value != 0.0) {
255 controlY1Property().set(value);
256 }
257 }
258
259 public final double getControlY1() {
260 return controlY1 == null ? 0.0 : controlY1.get();
261 }
262
263 public final DoubleProperty controlY1Property() {
264 if (controlY1 == null) {
265 controlY1 = new DoublePropertyBase() {
266
267 @Override
268 public void invalidated() {
269 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
270 NodeHelper.geomChanged(CubicCurve.this);
271 }
272
273 @Override
274 public Object getBean() {
275 return CubicCurve.this;
276 }
277
278 @Override
279 public String getName() {
280 return "controlY1";
281 }
282 };
283 }
284 return controlY1;
285 }
286
287 /**
288 * Defines the X coordinate of the second control point
289 * of the cubic curve segment.
290 *
292 */
293 private DoubleProperty controlX2;
294
295 public final void setControlX2(double value) {
296 if (controlX2 != null || value != 0.0) {
297 controlX2Property().set(value);
298 }
299 }
300
301 public final double getControlX2() {
302 return controlX2 == null ? 0.0 : controlX2.get();
303 }
304
305 public final DoubleProperty controlX2Property() {
306 if (controlX2 == null) {
307 controlX2 = new DoublePropertyBase() {
308
309 @Override
310 public void invalidated() {
311 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
312 NodeHelper.geomChanged(CubicCurve.this);
313 }
314
315 @Override
316 public Object getBean() {
317 return CubicCurve.this;
318 }
319
320 @Override
321 public String getName() {
322 return "controlX2";
323 }
324 };
325 }
326 return controlX2;
327 }
328
329 /**
330 * Defines the Y coordinate of the second control point
331 * of the cubic curve segment.
332 *
334 */
335 private DoubleProperty controlY2;
336
337 public final void setControlY2(double value) {
338 if (controlY2 != null || value != 0.0) {
339 controlY2Property().set(value);
340 }
341 }
342
343 public final double getControlY2() {
344 return controlY2 == null ? 0.0 : controlY2.get();
345 }
346
347 public final DoubleProperty controlY2Property() {
348 if (controlY2 == null) {
349 controlY2 = new DoublePropertyBase() {
350
351 @Override
352 public void invalidated() {
353 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
354 NodeHelper.geomChanged(CubicCurve.this);
355 }
356
357 @Override
358 public Object getBean() {
359 return CubicCurve.this;
360 }
361
362 @Override
363 public String getName() {
364 return "controlY2";
365 }
366 };
367 }
368 return controlY2;
369 }
370
371 /**
372 * Defines the X coordinate of the end point of the cubic curve segment.
373 *
374 * @defaultValue 0.0
375 */
376 private DoubleProperty endX;
377
378 public final void setEndX(double value) {
379 if (endX != null || value != 0.0) {
380 endXProperty().set(value);
381 }
382 }
383
384 public final double getEndX() {
385 return endX == null ? 0.0 : endX.get();
386 }
387
388 public final DoubleProperty endXProperty() {
389 if (endX == null) {
390 endX = new DoublePropertyBase() {
391
392 @Override
393 public void invalidated() {
394 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
395 NodeHelper.geomChanged(CubicCurve.this);
396 }
397
398 @Override
399 public Object getBean() {
400 return CubicCurve.this;
401 }
402
403 @Override
404 public String getName() {
405 return "endX";
406 }
407 };
408 }
409 return endX;
410 }
411
412 /**
413 * Defines the Y coordinate of the end point of the cubic curve segment.
414 *
415 * @defaultValue 0.0
416 */
417 private DoubleProperty endY;
418
419 public final void setEndY(double value) {
420 if (endY != null || value != 0.0) {
421 endYProperty().set(value);
422 }
423 }
424
425 public final double getEndY() {
426 return endY == null ? 0.0 : endY.get();
427 }
428
429 public final DoubleProperty endYProperty() {
430 if (endY == null) {
431 endY = new DoublePropertyBase() {
432
433 @Override
434 public void invalidated() {
435 NodeHelper.markDirty(CubicCurve.this, DirtyBits.NODE_GEOMETRY);
436 NodeHelper.geomChanged(CubicCurve.this);
437 }
438
439 @Override
440 public Object getBean() {
441 return CubicCurve.this;
442 }
443
444 @Override
445 public String getName() {
446 return "endY";
447 }
448 };
449 }
450 return endY;
451 }
452
453 /*
454 * Note: This method MUST only be called via its accessor method.
455 */
456 private CubicCurve2D doConfigShape() {
|