use of org.eclipse.gmf.runtime.notation.ShapeStyle in project statecharts by Yakindu.
the class RegionViewFactory method initializeFromPreferences.
@Override
protected void initializeFromPreferences(View view) {
super.initializeFromPreferences(view);
IPreferenceStore store = (IPreferenceStore) getPreferencesHint().getPreferenceStore();
if (store == null) {
return;
}
// Create region default styles
ShapeStyle style = (ShapeStyle) view.getStyle(NotationPackage.Literals.SHAPE_STYLE);
RGB fillRGB = PreferenceConverter.getColor(store, StatechartPreferenceConstants.PREF_REGION_BACKGROUND);
style.setFillColor(FigureUtilities.RGBToInteger(fillRGB));
RGB lineRGB = PreferenceConverter.getColor(store, StatechartPreferenceConstants.PREF_REGION_LINE);
style.setLineColor(FigureUtilities.RGBToInteger(lineRGB));
}
Aggregations