Search in sources :

Example 11 with ColorProperty

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

the class TankModel 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 ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
    setPropertyValue(PROP_LO_COLOR, new RGB(255, 128, 0));
    setPropertyValue(PROP_HI_COLOR, new RGB(255, 128, 0));
    setPropertyVisible(PROP_VALUE_LABEL_FORMAT, false);
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) RGB(org.eclipse.swt.graphics.RGB) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 12 with ColorProperty

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

the class ThermometerModel 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_SHOW_BULB, "Show Bulb", WidgetPropertyCategory.Display, true));
    addProperty(new ComboProperty(PROP_UNIT, "Unit", WidgetPropertyCategory.Display, TemperatureUnit.stringValues(), 0));
    addProperty(new ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    setPropertyValue(PROP_LO_COLOR, new RGB(255, 128, 0));
    setPropertyValue(PROP_HI_COLOR, new RGB(255, 128, 0));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) RGB(org.eclipse.swt.graphics.RGB) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 13 with ColorProperty

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

the class AbstractBoolWidgetModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, -1, -1, 63));
    addProperty(new BooleanProperty(PROP_SHOW_BOOL_LABEL, "Show Boolean Label", WidgetPropertyCategory.Display, false));
    addProperty(new StringProperty(PROP_ON_LABEL, "On Label", WidgetPropertyCategory.Display, DEFAULT_ON_LABEL));
    addProperty(new StringProperty(PROP_OFF_LABEL, "Off Label", WidgetPropertyCategory.Display, DEFAULT_OFF_LABEL));
    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 ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, new String[] { "Bit", "Enum" }, 0));
    addProperty(new StringProperty(PROP_ON_STATE, "On State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new StringProperty(PROP_OFF_STATE, "Off State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new ComboProperty(PROP_BOOL_LABEL_POS, "Boolean Label Position", WidgetPropertyCategory.Display, BoolLabelPosition.stringValues(), 0));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 14 with ColorProperty

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

the class AbstractShapeModel method configureProperties.

/**
 * {@inheritDoc}
 */
@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_LINE_WIDTH, "Line Width", WidgetPropertyCategory.Display, 0, 0, 100));
    addProperty(new IntegerProperty(PROP_ALPHA, "Alpha", WidgetPropertyCategory.Display, 255, 0, 255));
    addProperty(new ComboProperty(PROP_LINE_STYLE, "Line Style", WidgetPropertyCategory.Display, LineStyle.stringValues(), 0));
    addProperty(new ColorProperty(PROP_LINE_COLOR, "Line Color", WidgetPropertyCategory.Display, DEFAULT_LINE_COLOR));
    addProperty(new DoubleProperty(PROP_FILL_LEVEL, "Fill Level", WidgetPropertyCategory.Display, 0.0, 0.0, 100.0));
    addProperty(new BooleanProperty(PROP_HORIZONTAL_FILL, "Horizontal Fill", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_ANTIALIAS, "Anti Alias", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 15 with ColorProperty

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

the class CheckBoxModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, 0, -1, 63));
    addProperty(new StringProperty(PROP_LABEL, "Label", WidgetPropertyCategory.Display, // $NON-NLS-1$
    ""));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Display, false));
    addProperty(new ColorProperty(PROP_SELECTED_COLOR, "Selected Color", WidgetPropertyCategory.Display, new RGB(77, 77, 77)));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) RGB(org.eclipse.swt.graphics.RGB) 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