use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.
the class GaugeWidget method defineProperties.
@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
super.defineProperties(properties);
properties.add(skin = propSkin.createProperty(this, Skin.SIMPLE_SECTION));
properties.add(bar_background_color = propBarBackgroundColor.createProperty(this, new WidgetColor(0, 90, 0)));
properties.add(bar_color = propBarColor.createProperty(this, new WidgetColor(0, 183, 0)));
properties.add(start_from_zero = propStartFromZero.createProperty(this, true));
}
use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.
the class NavigationTabsWidget method defineProperties.
@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
super.defineProperties(properties);
properties.add(tabs = propTabs.createProperty(this, Arrays.asList(new TabProperty(this, 0))));
properties.add(direction = propDirection.createProperty(this, Direction.VERTICAL));
properties.add(tab_width = propTabWidth.createProperty(this, ActionButtonWidget.DEFAULT_WIDTH));
properties.add(tab_height = propTabHeight.createProperty(this, ActionButtonWidget.DEFAULT_HEIGHT));
properties.add(tab_spacing = propTabSpacing.createProperty(this, 2));
properties.add(selected_color = propSelectedColor.createProperty(this, new WidgetColor(236, 236, 236)));
properties.add(deselected_color = propDeselectedColor.createProperty(this, new WidgetColor(200, 200, 200)));
properties.add(font = propFont.createProperty(this, WidgetFontService.get(NamedWidgetFonts.DEFAULT)));
properties.add(active = propActiveTab.createProperty(this, 0));
properties.add(embedded_model = runtimeModel.createProperty(this, null));
// Initial size
propWidth().setValue(300);
propHeight().setValue(200);
}
Aggregations