Java Code Examples for javafx.scene.shape.QuadCurve#setEffect()
The following examples show how to use
javafx.scene.shape.QuadCurve#setEffect() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QuadCurveSample.java From marathonv5 with Apache License 2.0 | 6 votes |
public static Node createIconContent() { QuadCurve quadCurve = new QuadCurve(); quadCurve.setStartX(0); quadCurve.setStartY(50); quadCurve.setControlX(20); quadCurve.setControlY(0); quadCurve.setEndX(80); quadCurve.setEndY(50); quadCurve.setStroke(Color.web("#b9c0c5")); quadCurve.setStrokeWidth(5); quadCurve.getStrokeDashArray().addAll(15d,15d); quadCurve.setFill(null); javafx.scene.effect.InnerShadow effect = new javafx.scene.effect.InnerShadow(); effect.setOffsetX(1); effect.setOffsetY(1); effect.setRadius(3); effect.setColor(Color.rgb(0,0,0,0.6)); quadCurve.setEffect(effect); return quadCurve; }
Example 2
Source File: QuadCurveSample.java From marathonv5 with Apache License 2.0 | 6 votes |
public static Node createIconContent() { QuadCurve quadCurve = new QuadCurve(); quadCurve.setStartX(0); quadCurve.setStartY(50); quadCurve.setControlX(20); quadCurve.setControlY(0); quadCurve.setEndX(80); quadCurve.setEndY(50); quadCurve.setStroke(Color.web("#b9c0c5")); quadCurve.setStrokeWidth(5); quadCurve.getStrokeDashArray().addAll(15d,15d); quadCurve.setFill(null); javafx.scene.effect.InnerShadow effect = new javafx.scene.effect.InnerShadow(); effect.setOffsetX(1); effect.setOffsetY(1); effect.setRadius(3); effect.setColor(Color.rgb(0,0,0,0.6)); quadCurve.setEffect(effect); return quadCurve; }