Search in sources :

Example 11 with DoubleProperty

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));
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Example 12 with DoubleProperty

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");
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 13 with DoubleProperty

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));
}
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 14 with DoubleProperty

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

Example 15 with DoubleProperty

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()));
}
Also used : PointList(org.eclipse.draw2d.geometry.PointList) PointListProperty(org.csstudio.opibuilder.properties.PointListProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty)

Aggregations

DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)16 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)15 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)9 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)8 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)6 StringProperty (org.csstudio.opibuilder.properties.StringProperty)3 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)3 OPIColor (org.csstudio.opibuilder.util.OPIColor)2 DisplayScaleData (org.csstudio.opibuilder.datadefinition.DisplayScaleData)1 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)1 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)1 FontProperty (org.csstudio.opibuilder.properties.FontProperty)1 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)1 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)1 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)1 PointListProperty (org.csstudio.opibuilder.properties.PointListProperty)1 VersionProperty (org.csstudio.opibuilder.properties.VersionProperty)1 ColorMapProperty (org.csstudio.opibuilder.widgets.properties.ColorMapProperty)1 ColorMap (org.csstudio.swt.widgets.datadefinition.ColorMap)1 PredefinedColorMap (org.csstudio.swt.widgets.datadefinition.ColorMap.PredefinedColorMap)1