Search in sources :

Example 11 with WidgetColor

use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.

the class MeterWidget method defineProperties.

@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
    super.defineProperties(properties);
    properties.add(skin = propSkin.createProperty(this, Skin.HORIZONTAL));
    properties.add(knob_position = propKnobPosition.createProperty(this, KnobPosition.BOTTOM_CENTER));
    properties.add(average = propAverage.createProperty(this, false));
    properties.add(average_color = propAverageColor.createProperty(this, new WidgetColor(13, 23, 251)));
    properties.add(average_samples = propAverageSamples.createProperty(this, 100));
    properties.add(knob_color = propKnobColor.createProperty(this, new WidgetColor(177, 166, 155)));
    properties.add(major_tick_visible = propMajorTickVisible.createProperty(this, true));
    properties.add(medium_tick_visible = propMediumTickVisible.createProperty(this, true));
    properties.add(minor_tick_visible = propMinorTickVisible.createProperty(this, true));
    properties.add(needle_color = propNeedleColor.createProperty(this, new WidgetColor(255, 5, 7)));
    properties.add(only_extrema_visible = propOnlyExtremaVisible.createProperty(this, false));
    properties.add(scale_direction = propScaleDirection.createProperty(this, ScaleDirection.CLOCKWISE));
    properties.add(tick_label_decimals = propTickLabelDecimals.createProperty(this, 0));
    properties.add(tick_labels_visible = propTickLabelsVisible.createProperty(this, true));
    properties.add(tick_mark_ring_visible = propTickMarkRingVisible.createProperty(this, false));
}
Also used : WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Example 12 with WidgetColor

use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.

the class PolylineWidget method defineProperties.

@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
    super.defineProperties(properties);
    properties.add(line_width = propLineWidth.createProperty(this, 3));
    properties.add(line_color = propLineColor.createProperty(this, new WidgetColor(0, 0, 255)));
    properties.add(line_style = propLineStyle.createProperty(this, LineStyle.SOLID));
    properties.add(arrows = propArrows.createProperty(this, Arrows.NONE));
    properties.add(arrow_length = propArrowLength.createProperty(this, 20));
    properties.add(points = propPoints.createProperty(this, new Points()));
}
Also used : CommonWidgetProperties.propPoints(org.csstudio.display.builder.model.properties.CommonWidgetProperties.propPoints) Points(org.csstudio.display.builder.model.properties.Points) WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Example 13 with WidgetColor

use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.

the class ThermometerWidget method defineProperties.

@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
    super.defineProperties(properties);
    properties.add(fill_color = propFillColor.createProperty(this, new WidgetColor(60, 255, 60)));
    properties.add(limits_from_pv = propLimitsFromPV.createProperty(this, true));
    properties.add(minimum = propMinimum.createProperty(this, 0.0));
    properties.add(maximum = propMaximum.createProperty(this, 100.0));
}
Also used : WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Example 14 with WidgetColor

use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.

the class BoolButtonWidget method defineProperties.

@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
    super.defineProperties(properties);
    properties.add(bit = propBit.createProperty(this, 0));
    properties.add(off_label = propOffLabel.createProperty(this, "Off"));
    properties.add(off_color = propOffColor.createProperty(this, new WidgetColor(60, 100, 60)));
    properties.add(off_image = propOffImage.createProperty(this, ""));
    properties.add(on_label = propOnLabel.createProperty(this, "On"));
    properties.add(on_color = propOnColor.createProperty(this, new WidgetColor(60, 255, 60)));
    properties.add(on_image = propOnImage.createProperty(this, ""));
    properties.add(show_LED = propShowLED.createProperty(this, true));
    properties.add(font = propFont.createProperty(this, WidgetFontService.get(NamedWidgetFonts.DEFAULT)));
    properties.add(foreground = propForegroundColor.createProperty(this, WidgetColorService.getColor(NamedWidgetColors.TEXT)));
    properties.add(background = propBackgroundColor.createProperty(this, WidgetColorService.getColor(NamedWidgetColors.BUTTON_BACKGROUND)));
    properties.add(labels_from_pv = propLabelsFromPV.createProperty(this, false));
    properties.add(enabled = propEnabled.createProperty(this, true));
    properties.add(confirm_dialog = propConfirmDialog.createProperty(this, ConfirmDialog.NONE));
    properties.add(confirm_message = propConfirmMessage.createProperty(this, "Are your sure you want to do this?"));
    properties.add(password = propPassword.createProperty(this, ""));
}
Also used : WidgetColor(org.csstudio.display.builder.model.properties.WidgetColor)

Example 15 with WidgetColor

use of org.csstudio.display.builder.model.properties.WidgetColor in project org.csstudio.display.builder by kasemir.

the class BaseGaugeWidget method defineProperties.

@Override
protected void defineProperties(final List<WidgetProperty<?>> properties) {
    super.defineProperties(properties);
    properties.add(auto_scale = propAutoScale.createProperty(this, true));
    properties.add(background_color = propBackgroundColor.createProperty(this, new WidgetColor(255, 254, 253)));
    properties.add(foreground_color = propForegroundColor.createProperty(this, WidgetColorService.getColor(NamedWidgetColors.TEXT)));
    properties.add(transparent = propTransparent.createProperty(this, true));
    properties.add(precision = propPrecision.createProperty(this, -1));
    properties.add(level_hihi = propLevelHiHi.createProperty(this, 90.0));
    properties.add(level_high = propLevelHigh.createProperty(this, 80.0));
    properties.add(level_low = propLevelLow.createProperty(this, 20.0));
    properties.add(level_lolo = propLevelLoLo.createProperty(this, 10.0));
    properties.add(show_hihi = propShowHiHi.createProperty(this, true));
    properties.add(show_high = propShowHigh.createProperty(this, true));
    properties.add(show_low = propShowLow.createProperty(this, true));
    properties.add(show_lolo = propShowLoLo.createProperty(this, true));
    properties.add(title = propTitle.createProperty(this, ""));
    properties.add(unit = propUnit.createProperty(this, ""));
    properties.add(minimum = propMinimum.createProperty(this, 0.0));
    properties.add(maximum = propMaximum.createProperty(this, 100.0));
    properties.add(limits_from_pv = propLimitsFromPV.createProperty(this, true));
    properties.add(unit_from_pv = propUnitFromPV.createProperty(this, true));
    properties.add(value_visible = propValueVisible.createProperty(this, true));
    properties.add(enabled = propEnabled.createProperty(this, true));
    properties.add(major_tick_space = propMajorTickSpace.createProperty(this, 10.0));
    properties.add(minor_tick_space = propMinorTickSpace.createProperty(this, 1.0));
}
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