use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class ScrollBarModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new DoubleProperty(PROP_STEP_INCREMENT, "Step Increment", WidgetPropertyCategory.Behavior, DEFAULT_STEP_INCREMENT), true);
addProperty(new DoubleProperty(PROP_PAGE_INCREMENT, "Page Increment", WidgetPropertyCategory.Behavior, DEFAULT_PAGE_INCREMENT), true);
addProperty(new DoubleProperty(PROP_BAR_LENGTH, "Bar Length", WidgetPropertyCategory.Behavior, DEFAULT_BAR_LENGTH));
addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits From PV", WidgetPropertyCategory.Behavior, true));
addProperty(new BooleanProperty(PROP_SHOW_VALUE_TIP, "Show Value Tip", WidgetPropertyCategory.Display, true));
}
use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class KnobModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
// addPVProperty(new StringProperty(PROP_CONTROL_PV, "Control PV", WidgetPropertyCategory.Basic,
// ""), new PVValueProperty(PROP_CONTROL_PV_VALUE, null));
//
addProperty(new ColorProperty(PROP_KNOB_COLOR, "Knob Color", WidgetPropertyCategory.Display, DEFAULT_KNOB_COLOR));
addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_VALUE_LABEL, "Show Value Label", WidgetPropertyCategory.Display, true));
addProperty(new ColorProperty(PROP_THUMB_COLOR, "Thumb Color", WidgetPropertyCategory.Display, DEFAULT_THUMB_COLOR));
addProperty(new BooleanProperty(PROP_RAMP_GRADIENT, "Ramp Gradient", WidgetPropertyCategory.Display, true));
addProperty(new DoubleProperty(PROP_INCREMENT, "Increment", WidgetPropertyCategory.Behavior, 1.0));
setPropertyDescription(PROP_SHOW_MARKERS, "Show Ramp");
// setPropertyDescription(PROP_PVNAME, "Readback PV");
}
use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class ScaledSliderModel 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_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_HORIZONTAL, "Horizontal", WidgetPropertyCategory.Display, false));
addProperty(new ColorProperty(PROP_FILLBACKGROUND_COLOR, "Color Fillbackground", WidgetPropertyCategory.Display, DEFAULT_FILLBACKGROUND_COLOR));
addProperty(new ColorProperty(PROP_THUMB_COLOR, "Thumb Color", WidgetPropertyCategory.Display, DEFAULT_THUMB_COLOR));
addProperty(new DoubleProperty(PROP_STEP_INCREMENT, "Step_Increment", WidgetPropertyCategory.Behavior, DEFAULT_STEP_INCREMENT, 0, Double.MAX_VALUE), true);
addProperty(new DoubleProperty(PROP_PAGE_INCREMENT, "Page_Increment", WidgetPropertyCategory.Behavior, DEFAULT_PAGE_INCREMENT, 0, Double.MAX_VALUE), true);
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 SpinnerModel method configureProperties.
@Override
protected void configureProperties() {
pvModel = true;
super.configureProperties();
removeProperty(PROP_AUTOSIZE);
removeProperty(PROP_SHOW_SCROLLBAR);
removeProperty(PROP_WRAP_WORDS);
setPropertyVisible(PROP_TEXT, false);
addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN));
addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX));
addProperty(new DoubleProperty(PROP_STEP_INCREMENT, "Step Increment", WidgetPropertyCategory.Behavior, DEFAULT_STEP_INCREMENT), true);
addProperty(new DoubleProperty(PROP_PAGE_INCREMENT, "Page Increment", WidgetPropertyCategory.Behavior, DEFAULT_PAGE_INCREMENT), true);
addProperty(new BooleanProperty(PROP_LIMITS_FROM_PV, "Limits from PV", WidgetPropertyCategory.Behavior, true));
addProperty(new ComboProperty(PROP_FORMAT, "Format", WidgetPropertyCategory.Display, NumericFormatType.stringValues(), 0));
addProperty(new IntegerProperty(PROP_PRECISION, "Precision", WidgetPropertyCategory.Display, 3, 0, 100));
addProperty(new BooleanProperty(PROP_PRECISION_FROM_PV, "Precision from PV", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_BUTTONS_ON_LEFT, "Buttons on Left", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_HORIZONTAL_BUTTONS_LAYOUT, "Horizontal Buttons Layout", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_SHOW_TEXT, "Show text", WidgetPropertyCategory.Display, true));
}
use of org.csstudio.opibuilder.properties.DoubleProperty in project yamcs-studio by yamcs.
the class AbstractPolyModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new DoubleProperty(PROP_ROTATION, "Rotation Angle", WidgetPropertyCategory.Display, 0, 0, 360));
addProperty(new PointListProperty(PROP_POINTS, "Points", WidgetPropertyCategory.Display, new PointList()));
}
Aggregations