本文整理汇总了Java中javafx.scene.shape.SVGPath.setStrokeWidth方法的典型用法代码示例。如果您正苦于以下问题:Java SVGPath.setStrokeWidth方法的具体用法?Java SVGPath.setStrokeWidth怎么用?Java SVGPath.setStrokeWidth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.shape.SVGPath
的用法示例。
在下文中一共展示了SVGPath.setStrokeWidth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawNode
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
@Override
public Node drawNode() {
currentTestNode = this;
PathTransition pathTransition = new PathTransition();
Pane p = pre(pathTransition);
SVGPath path = new SVGPath();
path.setContent("M40,60 C42,148 144,30 25,32");
path.setStrokeWidth(2);
path.setStroke(Color.RED);
p.getChildren().add(path);
path.setFill(Color.TRANSPARENT);
// pathTransition.setDuration(Duration.valueOf(typicalDuration));
pathTransition.setDuration(new Duration(typicalDuration));
pathTransition.setNode(circle);
circle.setRotate(30);
//pathTransition.setPath(AnimationPath.createFromPath(path));
pathTransition.setPath(path);
pathTransition.setOrientation(OrientationType.NONE);
timeline.setCycleCount(3);
timeline.setAutoReverse(true);
return p;
}
示例2: Adenine
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Adenine() {
SVGPath svg = new SVGPath();
svg.setContent("M 5705.5762 0 L 0 17713.01 L 2287.0801 17713.01 L 3661.6816 13090.109 L 9647.168 13090.109 L 11046.254 17713.01 L 13333.334 17713.01 L 7615.5156 0 L 5705.5762 0 z M 6654.543 3114.373 L 9075.3398 11167.955 L 4245.752 11167.955 L 6654.543 3114.373 z ");
svg.setFill(AptaColors.Nucleotides.ADENINE );
svg.setStrokeWidth(0);
return svg;
}
示例3: Cytosine
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Cytosine() {
SVGPath svg = new SVGPath();
svg.setContent("M 6962.5938 0 C 4810.8302 0 3110.093 775.19183 1860.3828 2325.5762 C 620.12771 3875.9605 0 5985.4235 0 8653.9648 L 0 12374.887 C 0 15052.825 606.0358 17176.382 1818.1074 18745.559 C 3030.3609 20305.34 4665.367 21085.23 6723.125 21085.23 C 8771.4279 21085.23 10354.703 20502.661 11472.951 19337.523 C 12600.472 18172.385 13220.6 16490.453 13333.334 14291.727 L 10725.906 14291.727 C 10584.989 16020.64 10218.513 17218.663 9626.4785 17885.799 C 9034.4435 18552.933 8066.6589 18886.5 6723.125 18886.5 C 5379.4092 18886.5 4355.1654 18332.122 3650.3965 17223.363 C 2955.0827 16114.603 2607.4258 14521.935 2607.4258 12445.359 L 2607.4258 8682.1523 C 2607.4258 6567.9911 2983.2665 4965.9272 3734.9473 3875.9609 C 4486.628 2776.596 5562.511 2226.9141 6962.5938 2226.9141 C 8174.8472 2226.9141 9076.9008 2583.9731 9668.7539 3298.0898 C 10260.789 4012.2066 10613.172 5205.5333 10725.906 6878.0703 L 13333.334 6878.0703 C 13239.328 4669.9453 12647.385 2973.9182 11557.502 1789.9883 C 10476.893 596.66322 8945.2564 0 6962.5938 0 z ");
svg.setFill(AptaColors.Nucleotides.CYTOSINE);
svg.setStrokeWidth(0);
return svg;
}
示例4: Guanine
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Guanine() {
SVGPath svg = new SVGPath();
svg.setContent("M 6906.7773 0 C 4609.2557 0 2881.4221 720.33224 1723.2773 2160.998 C 574.4254 3592.2617 0 5748.5499 0 8629.8633 L 0 12669.387 C 28.24299 15362.401 673.27571 17448.073 1935.0996 18926.402 C 3206.2164 20395.311 4952.91 21129.766 7175.1777 21129.766 C 9679.8754 21129.766 11581.904 20371.768 12881.264 18855.775 L 13333.334 18290.797 L 13333.334 10607.246 L 6991.5059 10607.246 L 6991.5059 12810.637 L 10748.553 12810.637 L 10748.553 17556.334 L 10367.273 17909.463 C 9642.2486 18587.422 8582.9544 18926.402 7189.3906 18926.402 C 5710.9157 18926.402 4576.2764 18375.555 3785.4727 17273.859 C 2994.4867 16162.762 2598.9922 14571.442 2598.9922 12499.9 L 2598.9922 8305.0234 C 2627.2352 6186.3983 2985.0115 4646.8638 3672.3184 3686.4199 C 4359.8074 2716.5557 5442.6975 2231.625 6920.9902 2231.625 C 8154.3889 2231.625 9072.4684 2594.1464 9675.2285 3319.1895 C 10286.917 4034.8122 10644.691 5032.9179 10748.553 6313.5098 L 13333.334 6313.5098 C 13220.362 4289.0523 12608.308 2730.687 11497.174 1638.4121 C 10395.515 546.13725 8865.3831 0 6906.7773 0 z ");
svg.setStroke(AptaColors.Nucleotides.GUANINE);
svg.setFill(AptaColors.Nucleotides.GUANINE);
svg.setStrokeWidth(0);
return svg;
}
示例5: getAxisCenter
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
private SVGPath getAxisCenter() {
SVGPath svg = new SVGPath();
//svg.setContent("M 290.50781 391.08984 L 290.50781 431.08984 L 298.50781 431.08984 L 298.50781 391.08984 L 290.50781 391.08984 z ");
svg.setContent("M 290.50781 391.08984 L 290.50781 431.08984 L 294.50781 431.08984 L 294.50781 391.08984 L 290.50781 391.08984 z ");
//svg.setContent("M 290.50781 391.08984 L 290.50781 407.3125 L 274.28516 407.3125 L 274.28516 414.87109 L 290.50781 414.87109 L 290.50781 431.08984 L 298.06445 431.08984 L 298.06445 414.87109 L 314.28516 414.87109 L 314.28516 407.3125 L 298.06445 407.3125 L 298.06445 391.08984 L 290.50781 391.08984 z ");
svg.setFill(Color.BLACK);
svg.setStrokeWidth(0);
return svg;
}
示例6: Uracil
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Uracil() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 15419.127 C 19.795796 17524.669 595.7958 19148.522 1728 20290.682 C 2860.2042 21422.905 4499.0273 21989.016 6644.4688 21989.016 C 8739.9402 21989.016 10373.67 21408.009 11545.658 20245.996 C 12718.223 19083.964 13314.115 17475.007 13333.334 15419.127 L 13333.334 0 L 10592.289 0 L 10592.289 15314.854 C 10592.289 16774.822 10279.399 17867.32 9653.6211 18592.346 C 9037.8373 19307.435 8034.7871 19664.98 6644.4688 19664.98 C 5263.9522 19664.98 4260.8051 19307.435 3635.0273 18592.346 C 3019.2436 17867.32 2711.3516 16774.822 2711.3516 15314.854 L 2711.3516 0 L 0 0 z ");
svg.setStroke(AptaColors.Nucleotides.URACIL);
svg.setFill(AptaColors.Nucleotides.URACIL);
svg.setStrokeWidth(0);
return svg;
}
示例7: Hairpin
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Hairpin() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 20370.613 L 2560.375 20370.613 L 2560.375 10954.787 L 10759.15 10954.787 L 10759.15 20370.613 L 13333.334 20370.613 L 13333.334 0 L 10759.15 0 L 10759.15 8758.2305 L 2560.375 8758.2305 L 2560.375 0 L 0 0 z ");
svg.setStroke(AptaColors.Contexts.HAIRPIN);
svg.setStrokeWidth(0);
return svg;
}
示例8: InnerLoop
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath InnerLoop() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 2222.2266 L 5372.7207 2222.2266 L 5372.7207 18256 L 0.001953125 18256 L 0.001953125 20478.225 L 5372.7207 20478.225 L 7946.5684 20478.225 L 13333.336 20478.225 L 13333.336 18256 L 7946.5703 18256 L 7946.5703 2222.2266 L 13333.334 2222.2266 L 13333.334 0 L 7946.5703 0 L 5372.7246 0 L 0 0 z ");
svg.setStroke(AptaColors.Contexts.INNERLOOP);
svg.setStrokeWidth(0);
return svg;
}
示例9: BulgeLoop
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath BulgeLoop() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 23028.992 L 6785.2695 23028.992 C 8883.6864 23028.992 10496.982 22438.501 11625.156 21257.52 C 12763.941 20076.558 13333.334 18452.724 13333.334 16386.016 C 13333.334 15004.701 13022.264 13823.73 12400.125 12843.102 C 11788.597 11862.473 10955.679 11213.992 9901.3691 10897.658 C 10818.559 10444.246 11546.088 9806.3037 12083.955 8983.832 C 12621.618 8161.3808 12890.449 7212.3898 12890.449 6136.8594 C 12890.449 4091.2294 12357.99 2557.0118 11293.07 1534.207 C 10238.557 511.40225 8662.1933 0 6563.9805 0 L 0 0 z M 2894.5059 2499.0312 L 6563.9805 2499.0312 C 7713.3759 2499.0313 8567.4137 2789.0036 9126.0938 3368.9453 C 9684.9778 3938.3378 9964.4199 4855.7004 9964.4199 6121.0352 C 9964.4199 7238.7421 9653.3495 8135.0175 9031.2109 8809.8613 C 8419.6828 9484.7052 7613.0874 9822.127 6611.4219 9822.127 L 2894.5059 9822.127 L 2894.5059 2499.0312 z M 2894.5059 12257.863 L 6911.9824 12257.863 C 9252.8068 12257.863 10423.219 13644.454 10423.219 16417.633 C 10423.219 17725.144 10101.642 18742.684 9458.4863 19470.254 C 8815.1269 20187.274 7945.1723 20545.785 6848.625 20545.785 L 2894.5059 20545.785 L 2894.5059 12257.863 z ");
svg.setStroke(AptaColors.Contexts.BULGELOOP);
svg.setStrokeWidth(0);
return svg;
}
示例10: MultipleLoop
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath MultipleLoop() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 15758.412 L 1980.668 15758.412 L 1980.668 9621.7324 L 1796.3613 3517.5137 L 5898.2344 15758.412 L 7413.5273 15758.412 L 11536.971 3474.2227 L 11352.664 9621.7324 L 11352.664 15758.412 L 13333.334 15758.412 L 13333.334 0 L 10779.01 0 L 6666.248 12857.822 L 2553.4863 0 L 0 0 z ");
svg.setStroke(AptaColors.Contexts.MULTIPLELOOP);
svg.setStrokeWidth(0);
return svg;
}
示例11: DanglingEnd
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath DanglingEnd() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 21960.773 L 4916.8887 21960.773 C 7651.9314 21960.773 9738.4326 21171.432 11176.393 19592.75 C 12614.353 18004.009 13333.334 15756.647 13333.334 12850.664 L 13333.334 9170.4102 C 13333.334 6264.4467 12624.375 4012.0651 11206.457 2413.2637 C 9788.7335 804.42187 7797.8686 0 5233.8633 0 L 0 0 z M 2760.2402 2383.1133 L 5233.8633 2383.1133 C 7033.7456 2383.1133 8376.0683 2926.0933 9260.832 4012.0547 C 10155.714 5087.9757 10603.154 6782.2973 10603.154 9095.0195 L 10603.154 12986.414 C 10583.112 15168.416 10125.652 16817.488 9230.7695 17933.629 C 8335.8875 19039.71 6918.0662 19592.75 4977.3066 19592.75 L 2760.2402 19592.75 L 2760.2402 2383.1133 z ");
svg.setStroke(AptaColors.Contexts.DANGLINGEND);
svg.setStrokeWidth(0);
return svg;
}
示例12: Paired
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Paired() {
SVGPath svg = new SVGPath();
svg.setContent("M 0 0 L 0 21594.42 L 2714.1953 21594.42 L 2714.1953 13140.553 L 7074.6426 13140.553 C 9062.0479 13101.004 10599.527 12522.585 11687.08 11405.299 C 12784.582 10278.12 13333.334 8676.3331 13333.334 6599.9375 C 13333.334 4602.6593 12759.9 3005.8199 11613.033 1809.416 C 10465.975 603.13925 8888.8883 0 6881.7754 0 L 0 0 z M 2714.1953 2343.3574 L 6896.4141 2343.3574 C 8053.4218 2343.3574 8963.1266 2733.9121 9625.5312 3515.0215 C 10287.936 4296.15 10619.139 5334.3482 10619.139 6629.6152 C 10619.139 7974.3235 10297.791 9007.5656 9655.0938 9729.3418 C 9012.3967 10451.137 8087.9565 10812.033 6881.7754 10812.033 L 2714.1953 10812.033 L 2714.1953 2343.3574 z ");
svg.setStroke(AptaColors.Contexts.PAIRED);
svg.setStrokeWidth(0);
return svg;
}
示例13: Nine
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Nine() {
SVGPath svg = new SVGPath();
svg.setContent("M 6589.2285 0 C 4553.814 0 2943.8629 793.40403 1759.375 2380.2129 C 586.45823 3967.2443 0 6071.6407 0 8693.4023 C 0 11188.771 540.50656 13206.829 1621.5215 14747.576 C 2702.3139 16288.545 4156.9456 17059.029 5985.4141 17059.029 C 7618.2851 17059.029 9044.2105 16282.871 10263.189 14730.553 C 10171.065 17513.198 9561.5753 19542.716 8434.7207 20819.105 C 7319.2148 22083.257 5680.5573 22738.698 3518.75 22785.428 L 2984.0293 22785.428 L 2984.0293 25476.393 C 4881.4797 25476.393 6462.613 25206.14 7727.4316 24665.633 C 8992.4728 24113.777 10033.211 23308.8 10849.646 22250.705 C 11666.082 21192.833 12281.247 19801.509 12695.139 18076.736 C 13120.602 16351.741 13333.334 14097.921 13333.334 11315.275 L 13333.334 10366.328 C 13333.334 7123.7284 12735.415 4588.195 11539.578 2759.7266 C 10355.09 919.90947 8704.9737 0 6589.2285 0 z M 6589.2285 2656.5859 C 7612.6101 2656.5859 8486.5679 3317.8117 9211.1016 4640.2637 C 9935.4127 5951.1445 10297.568 7647.2127 10297.568 9728.4668 L 10297.568 11073.949 C 9906.5961 12074.411 9360.4148 12885.062 8659.0234 13505.9 C 7957.6321 14115.39 7238.8842 14420.135 6502.7793 14420.135 C 5421.9869 14420.135 4565.3859 13873.951 3932.9766 12781.588 C 3300.3447 11677.653 2984.0293 10257.514 2984.0293 8521.1699 C 2984.0293 6784.8259 3306.0195 5376.1458 3950 4295.1309 C 4605.5517 3202.7673 5485.2938 2656.5859 6589.2285 2656.5859 z ");
svg.setStrokeWidth(0);
return svg;
}
示例14: One
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath One() {
SVGPath svg = new SVGPath();
svg.setContent("M 12561.939 0 L 0 5482.3887 L 0 10110.752 L 8429.8906 6336.4121 L 8429.8906 40303.867 L 13333.334 40303.867 L 13333.334 0 L 12561.939 0 z ");
svg.setStrokeWidth(0);
return svg;
}
示例15: Two
import javafx.scene.shape.SVGPath; //导入方法依赖的package包/类
public final static SVGPath Two() {
SVGPath svg = new SVGPath();
svg.setContent("M 6515.1543 0 C 4507.9461 0 2920.2861 658.43881 1752.1719 1975.3164 C 584.05765 3292.1942 0 5017.9405 0 7152.5566 L 2819.3809 7152.5566 C 2819.3809 5623.2793 3138.0226 4455.0815 3775.3066 3647.9629 C 4423.0716 2830.2244 5336.3536 2421.3555 6515.1543 2421.3555 C 7449.8101 2421.3555 8203.8247 2803.6738 8777.1953 3568.3125 C 9350.7715 4332.9512 9637.5586 5331.2306 9637.5586 6563.1484 C 9637.5586 7529.5667 9441.0918 8448.1946 9048.1582 9319.0332 C 8665.7056 10179.252 7975.4003 11283.729 6977.2422 12632.467 L 366.2168 21393.951 L 366.2168 23512.639 L 13333.334 23512.639 L 13333.334 21107.213 L 3727.5254 21107.213 L 8888.7871 14352.904 C 11278.242 11220.01 12472.969 8506.6054 12472.969 6212.6895 C 12472.969 4332.9526 11942.036 2830.2237 10880.17 1704.5059 C 9818.0984 568.16788 8363.0929 0 6515.1543 0 z ");
svg.setStrokeWidth(0);
return svg;
}