Search in sources :

Example 11 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class ByteMonitorModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_NUM_BITS, "Number of Bits", WidgetPropertyCategory.Display, 16, 0, 64));
    addProperty(new IntegerProperty(PROP_START_BIT, "Start Bit", WidgetPropertyCategory.Display, 0, 0, 64));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_BIT_REVERSE, "Reverse Bits", WidgetPropertyCategory.Display, false));
    addProperty(new ColorProperty(PROP_ON_COLOR, "On Color", WidgetPropertyCategory.Display, DEFAULT_ON_COLOR));
    addProperty(new ColorProperty(PROP_OFF_COLOR, "Off Color", WidgetPropertyCategory.Display, DEFAULT_OFF_COLOR));
    addProperty(new BooleanProperty(PROP_SQUARE_LED, "Square LED", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    addProperty(new StringListProperty(PROP_LABELS, "Labels", WidgetPropertyCategory.Display, new ArrayList<String>()));
    addProperty(new IntegerProperty(PROP_LED_BORDER, "LED border", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER));
    addProperty(new ColorProperty(PROP_LED_BORDER_COLOR, "LED border color", WidgetPropertyCategory.Display, DEFAULT_LED_BORDER_COLOR.getRGB()));
    addProperty(new BooleanProperty(PROP_PACK_LEDS, "Pack LEDs", WidgetPropertyCategory.Display, false));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ArrayList(java.util.ArrayList) StringListProperty(org.csstudio.opibuilder.properties.StringListProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 12 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class SashContainerModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
    addProperty(new ComboProperty(PROP_SASH_STYLE, "Sash Style", WidgetPropertyCategory.Display, SashContainerFigure.SashStyle.stringValues(), 2));
    addProperty(new DoubleProperty(PROP_SASH_POSITION, "Sash Position", WidgetPropertyCategory.Display, 0.5));
    addProperty(new IntegerProperty(PROP_SASH_WIDTH, "Sash Width", WidgetPropertyCategory.Display, 3, 1, 100));
    // addProperty(new BooleanProperty(PROP_LOCK_CHILDREN, "Lock Children",
    // WidgetPropertyCategory.Behavior, false));
    addProperty(new BooleanProperty(PROP_PANEL1_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return "Panel 1 (Left/Up)";
        }
    }, false));
    addProperty(new BooleanProperty(PROP_PANEL2_AUTO_SCALE_CHILDREN, "Auto Scale Children (at Runtime)", new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return "Panel 2 (Right/Down)";
        }
    }, false));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) WidgetPropertyCategory(org.csstudio.opibuilder.properties.WidgetPropertyCategory) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Example 13 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class PolyLineModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    removeProperty(PROP_LINE_COLOR);
    addProperty(new ComboProperty(PROP_ARROW, "Arrows", WidgetPropertyCategory.Display, ArrowType.stringValues(), 0));
    addProperty(new BooleanProperty(PROP_FILL_ARROW, "Fill Arrow", WidgetPropertyCategory.Display, true));
    addProperty(new IntegerProperty(PROP_ARROW_LENGTH, "Arrow Length", WidgetPropertyCategory.Display, 20, 1, 1000));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty)

Example 14 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class ProgressBarModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new ColorProperty(PROP_FILL_COLOR, "Fill Color", WidgetPropertyCategory.Display, DEFAULT_FILL_COLOR));
    addProperty(new BooleanProperty(PROP_FILLCOLOR_ALARM_SENSITIVE, "FillColor Alarm Sensitive", WidgetPropertyCategory.Display, false));
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SHOW_LABEL, "Show Label", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
    addProperty(new ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
    addProperty(new DoubleProperty(PROP_ORIGIN, "Origin", WidgetPropertyCategory.Behavior, 0));
    addProperty(new BooleanProperty(PROP_ORIGIN_IGNORED, "Origin Ignored", WidgetPropertyCategory.Behavior, true));
    addProperty(new BooleanProperty(PROP_INDICATOR_MODE, "Indicator Mode", WidgetPropertyCategory.Display, false));
    setPropertyValue(PROP_LO_COLOR, new OPIColor(255, 128, 0));
    setPropertyValue(PROP_HI_COLOR, new OPIColor(255, 128, 0));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty) OPIColor(org.csstudio.opibuilder.util.OPIColor)

Example 15 with BooleanProperty

use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.

the class RectangleModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new ColorProperty(PROP_BACKGROUND_GRADIENT_START_COLOR, "Background Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
    addProperty(new ColorProperty(PROP_FOREGROUND_GRADIENT_START_COLOR, "Foreground Gradient Start Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_WHITE));
    addProperty(new BooleanProperty(PROP_GRADIENT, "Gradient", WidgetPropertyCategory.Display, false));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Aggregations

BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)56 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)27 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)24 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)19 StringProperty (org.csstudio.opibuilder.properties.StringProperty)17 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)15 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)7 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)7 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)5 FontProperty (org.csstudio.opibuilder.properties.FontProperty)4 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)4 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)4 RGB (org.eclipse.swt.graphics.RGB)4 StringListProperty (org.csstudio.opibuilder.properties.StringListProperty)3 ArrayList (java.util.ArrayList)2 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)2 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 OPIColor (org.csstudio.opibuilder.util.OPIColor)2 UID (java.rmi.server.UID)1 DisplayScaleData (org.csstudio.opibuilder.datadefinition.DisplayScaleData)1