Search in sources :

Example 6 with ColorProperty

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

the class MeterModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new ColorProperty(PROP_NEEDLE_COLOR, "Needle Color", WidgetPropertyCategory.Display, DEFAULT_NEEDLE_COLOR));
    addProperty(new BooleanProperty(PROP_RAMP_GRADIENT, "Ramp Gradient", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SHOW_VALUE_LABEL, "Show Value Label", WidgetPropertyCategory.Display, true));
    setPropertyDescription(PROP_SHOW_MARKERS, "Show Ramp");
    // Ramp cannot be transparent.
    setPropertyValue(PROP_TRANSPARENT, false);
    removeProperty(PROP_TRANSPARENT);
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 7 with ColorProperty

use of org.csstudio.opibuilder.properties.ColorProperty 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 8 with ColorProperty

use of org.csstudio.opibuilder.properties.ColorProperty 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)

Example 9 with ColorProperty

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

the class RoundedRectangleModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new IntegerProperty(PROP_CORNER_WIDTH, "Corner Width", WidgetPropertyCategory.Display, DEFAULT_CORNER_WIDTH));
    addProperty(new IntegerProperty(PROP_CORNER_HEIGHT, "Corner Height", WidgetPropertyCategory.Display, DEFAULT_CORNER_HEIGHT));
    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 : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 10 with ColorProperty

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

the class TabModel method addTabProperty.

private void addTabProperty(TabProperty tabProperty, final int tabIndex) {
    String propID = makeTabPropID(tabProperty.propIDPre, tabIndex);
    WidgetPropertyCategory category;
    category = new WidgetPropertyCategory() {

        @Override
        public String toString() {
            return NLS.bind("Tab {0}", tabIndex);
        }
    };
    switch(tabProperty) {
        case TITLE:
            addProperty(new StringProperty(propID, tabProperty.toString(), category, category.toString()));
            break;
        case FONT:
            addProperty(new FontProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_FONT));
            break;
        case FORECOLOR:
            addProperty(new ColorProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_FORECOLOR));
            break;
        case BACKCOLOR:
            addProperty(new ColorProperty(propID, tabProperty.toString(), category, DEFAULT_TAB_BACKCOLOR));
            break;
        case ICON_PATH:
            addProperty(new FilePathProperty(propID, tabProperty.toString(), category, null, FILE_EXTENSIONS));
            break;
        case ENABLED:
            addProperty(new BooleanProperty(propID, tabProperty.toString(), category, true));
            break;
        default:
            break;
    }
}
Also used : FontProperty(org.csstudio.opibuilder.properties.FontProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) WidgetPropertyCategory(org.csstudio.opibuilder.properties.WidgetPropertyCategory) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Aggregations

BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)24 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)24 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)12 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)8 StringProperty (org.csstudio.opibuilder.properties.StringProperty)8 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)7 RGB (org.eclipse.swt.graphics.RGB)4 FontProperty (org.csstudio.opibuilder.properties.FontProperty)3 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)3 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)3 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)3 PropertyChangeEvent (java.beans.PropertyChangeEvent)2 PropertyChangeListener (java.beans.PropertyChangeListener)2 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 StringListProperty (org.csstudio.opibuilder.properties.StringListProperty)2 OPIColor (org.csstudio.opibuilder.util.OPIColor)2 UID (java.rmi.server.UID)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 WidgetScaleData (org.csstudio.opibuilder.datadefinition.WidgetScaleData)1