Search in sources :

Example 1 with LineStyle

use of org.osate.ge.graphics.LineStyle in project osate2 by osate.

the class AgeFxTest method refreshStyle.

private void refreshStyle() {
    final Style style = StyleBuilder.create(baseStyle).lineStyle(dashed ? LineStyle.DASHED : LineStyle.SOLID).build();
    final FxStyle fxStyle = styleToFx.createStyle(style);
    for (final Node node : container.getChildrenUnmodifiable()) {
        FxStyleApplier.applyStyle(node, fxStyle);
    }
}
Also used : EllipseNode(org.osate.ge.gef.EllipseNode) LabelNode(org.osate.ge.gef.LabelNode) Node(javafx.scene.Node) ConnectionNode(org.osate.ge.gef.ConnectionNode) FlowIndicatorNode(org.osate.ge.gef.FlowIndicatorNode) LineStyle(org.osate.ge.graphics.LineStyle) FxStyle(org.osate.ge.gef.FxStyle) Style(org.osate.ge.graphics.Style) FxStyle(org.osate.ge.gef.FxStyle)

Aggregations

Node (javafx.scene.Node)1 ConnectionNode (org.osate.ge.gef.ConnectionNode)1 EllipseNode (org.osate.ge.gef.EllipseNode)1 FlowIndicatorNode (org.osate.ge.gef.FlowIndicatorNode)1 FxStyle (org.osate.ge.gef.FxStyle)1 LabelNode (org.osate.ge.gef.LabelNode)1 LineStyle (org.osate.ge.graphics.LineStyle)1 Style (org.osate.ge.graphics.Style)1