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);
}
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));
}
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));
}
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));
}
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;
}
}
Aggregations