use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class AbstractMarkedWidgetModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new BooleanProperty(PROP_SHOW_MARKERS, "Show Markers", WidgetPropertyCategory.Display, true));
addProperty(new DoubleProperty(PROP_LOLO_LEVEL, "Level LOLO", WidgetPropertyCategory.Behavior, DEFAULT_LEVELS[0]));
addProperty(new DoubleProperty(PROP_LO_LEVEL, "Level LO", WidgetPropertyCategory.Behavior, DEFAULT_LEVELS[1]));
addProperty(new DoubleProperty(PROP_HI_LEVEL, "Level HI", WidgetPropertyCategory.Behavior, DEFAULT_LEVELS[2]));
addProperty(new DoubleProperty(PROP_HIHI_LEVEL, "Level HIHI", WidgetPropertyCategory.Behavior, DEFAULT_LEVELS[3]));
addProperty(new BooleanProperty(PROP_SHOW_LOLO, "Show LOLO", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_LO, "Show LO", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_HI, "Show HI", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_HIHI, "Show HIHI", WidgetPropertyCategory.Display, true));
addProperty(new ColorProperty(PROP_LOLO_COLOR, "Color LOLO ", WidgetPropertyCategory.Display, DEFAULT_LOLO_COLOR));
addProperty(new ColorProperty(PROP_LO_COLOR, "Color LO", WidgetPropertyCategory.Display, DEFAULT_LO_COLOR));
addProperty(new ColorProperty(PROP_HI_COLOR, "Color HI", WidgetPropertyCategory.Display, DEFAULT_HI_COLOR));
addProperty(new ColorProperty(PROP_HIHI_COLOR, "Color HIHI", WidgetPropertyCategory.Display, DEFAULT_HIHI_COLOR));
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits From PV", WidgetPropertyCategory.Behavior, true));
}
use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class AbstractScaledWidgetModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent Background", WidgetPropertyCategory.Display, true));
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new IntegerProperty(PROP_MAJOR_TICK_STEP_HINT, "Major Tick Step Hint", WidgetPropertyCategory.Display, DEFAULT_MAJOR_TICK_STEP_HINT, 1, 1000));
addProperty(new BooleanProperty(PROP_SHOW_MINOR_TICKS, "Show Minor Ticks", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_SCALE, "Show Scale", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_LOG_SCALE, "Log Scale", WidgetPropertyCategory.Display, false));
addProperty(new FontProperty(PROP_SCALE_FONT, "Scale Font", WidgetPropertyCategory.Display, MediaService.DEFAULT_FONT));
addProperty(new StringProperty(PROP_SCALE_FORMAT, "Scale Format", WidgetPropertyCategory.Display, ""));
addProperty(new StringProperty(PROP_VALUE_LABEL_FORMAT, "Value Label Format", WidgetPropertyCategory.Display, ""));
}
use of org.csstudio.opibuilder.properties.DoubleProperty 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));
}
use of org.csstudio.opibuilder.properties.DoubleProperty 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.DoubleProperty in project yamcs-studio by yamcs.
the class TextInputModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new ComboProperty(PROP_STYLE, "Style", WidgetPropertyCategory.Basic, Style.stringValues(), Style.CLASSIC.ordinal()));
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits From PV", WidgetPropertyCategory.Behavior, true));
addProperty(new BooleanProperty(PROP_MULTILINE_INPUT, "Multi-line Input", WidgetPropertyCategory.Behavior, false));
addProperty(new StringProperty(PROP_DATETIME_FORMAT, "Datetime Format", WidgetPropertyCategory.Display, "yyyy-MM-dd HH:mm:ss"));
addProperty(new ComboProperty(PROP_SELECTOR_TYPE, "Selector Type", WidgetPropertyCategory.Display, SelectorType.stringValues(), SelectorType.NONE.ordinal()));
addProperty(new ComboProperty(PROP_FILE_SOURCE, "File Source", WidgetPropertyCategory.Display, FileSource.stringValues(), FileSource.WORKSPACE.ordinal()));
addProperty(new ComboProperty(PROP_FILE_RETURN_PART, "File Return Part", WidgetPropertyCategory.Display, FileReturnPart.stringValues(), FileReturnPart.FULL_PATH.ordinal()));
addProperty(new StringProperty(PROP_CONFIRM_MESSAGE, "Confirm Message", WidgetPropertyCategory.Behavior, "", true));
addProperty(new BooleanProperty(PROP_SHOW_NATIVE_BORDER, "Show Native Border", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_PASSWORD_INPUT, "Password Input", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_READ_ONLY, "Read Only", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_SHOW_H_SCROLL, "Show Horizontal Scrollbar", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_V_SCROLL, "Show Vertical Scrollbar", WidgetPropertyCategory.Display, false));
addProperty(new ComboProperty(PROP_NEXT_FOCUS, "Next Focus", WidgetPropertyCategory.Behavior, FOCUS_TRAVERSE.stringValues(), 0));
setPropertyVisible(PROP_DATETIME_FORMAT, false);
setPropertyVisible(PROP_FILE_RETURN_PART, false);
setPropertyVisible(PROP_FILE_SOURCE, false);
setPropertyVisible(PROP_WRAP_WORDS, false);
setPropertyVisible(PROP_ALIGN_V, false);
setText("");
setPropertyValue(PROP_BORDER_STYLE, BorderStyle.LOWERED.ordinal());
setPropertyValue(PROP_BORDER_ALARMSENSITIVE, false);
}
Aggregations