gitlab #415
Change-Id: Ibc478abadc3c80006eee09b7daf568a9f43dd8b0
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);
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);
if (desc.color != null)
graph.claimLiteral(chartItem, G2DResource.getInstance(graph).HasColor, desc.color, Bindings.FLOAT_ARRAY);
public DrawMode drawMode = DrawMode.getDefault();
public DrawMode drawMode = DrawMode.getDefault();
+ public @Optional Float strokeWidth;
public @Optional float[] color;
}
public @Optional float[] color;
}
cid.max = data.max;
cid.subscriptionItem = ns.subscriptionItem;
cid.color = data.color;
cid.max = data.max;
cid.subscriptionItem = ns.subscriptionItem;
cid.color = data.color;
+ cid.strokeWidth = data.strokeWidth;
AddChartItem ci = new AddChartItem( chart, Collections.singletonList( cid ) );
Simantics.getSession().sync( ci );
}
AddChartItem ci = new AddChartItem( chart, Collections.singletonList( cid ) );
Simantics.getSession().sync( ci );
}