Search in sources :

Example 26 with WidgetColor

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));
}
Also used : WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Example 27 with WidgetColor

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);
}
Also used : WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Aggregations

WidgetColor (org.csstudio.display.builder.model.properties.WidgetColor)27 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)3 Test (org.junit.Test)3 Background (javafx.scene.layout.Background)2 BackgroundFill (javafx.scene.layout.BackgroundFill)2 CommonWidgetProperties.propPoints (org.csstudio.display.builder.model.properties.CommonWidgetProperties.propPoints)2 Points (org.csstudio.display.builder.model.properties.Points)2 BasicStroke (java.awt.BasicStroke)1 Color (java.awt.Color)1 Graphics2D (java.awt.Graphics2D)1 BufferedImage (java.awt.image.BufferedImage)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 Scene (javafx.scene.Scene)1 Label (javafx.scene.control.Label)1 MenuButton (javafx.scene.control.MenuButton)1 MenuItem (javafx.scene.control.MenuItem)1 TextArea (javafx.scene.control.TextArea)1 WritableImage (javafx.scene.image.WritableImage)1