]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.charts/src/org/simantics/charts/query/AddChartItem.java
Set strokeWidth for new chart items already upon creation
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / query / AddChartItem.java
index 62ef8781f596da405e79081947cdb9f2e49e7f50..280f32f347fdbe3d8d31d7f39da16c880e252e37 100644 (file)
@@ -94,6 +94,8 @@ public class AddChartItem extends WriteResultRequest<Collection<Resource>> {
                 graph.claim(chartItem, CHART.Chart_Item_Renderer, getRenderer(graph, desc.renderer));
                 int index = desc.index!=null ? desc.index : nextIndex++;
                 graph.claimLiteral(chartItem, CHART.Chart_Item_Index, index);
+                if (desc.strokeWidth != null)
+                    graph.claimLiteral(chartItem, G2DResource.getInstance(graph).HasStrokeWidth, desc.strokeWidth, Bindings.FLOAT);
                 if (desc.color != null)
                     graph.claimLiteral(chartItem, G2DResource.getInstance(graph).HasColor, desc.color, Bindings.FLOAT_ARRAY);