Search in sources :

Example 16 with ColorProperty

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

the class GaugeModel 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_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_RAMP_GRADIENT, "Ramp Gradient", WidgetPropertyCategory.Display, true));
    setPropertyDescription(PROP_SHOW_MARKERS, "Show Ramp");
}
Also used : BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 17 with ColorProperty

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

the class IntensityGraphModel method configureProperties.

@Override
protected void configureProperties() {
    addPVProperty(new PVNameProperty(PROP_HORIZON_PROFILE_X_PV_NAME, "Horizon Profile X PV", WidgetPropertyCategory.Basic, ""), new PVValueProperty(PROP_HORIZON_PROFILE_X_PV_VALUE, null));
    addPVProperty(new PVNameProperty(PROP_VERTICAL_PROFILE_X_PV_NAME, "Vertical Profile X PV", WidgetPropertyCategory.Basic, ""), new PVValueProperty(PROP_VERTICAL_PROFILE_X_PV_VALUE, null));
    addPVProperty(new PVNameProperty(PROP_HORIZON_PROFILE_Y_PV_NAME, "Horizon Profile Y PV", WidgetPropertyCategory.Basic, ""), new PVValueProperty(PROP_HORIZON_PROFILE_Y_PV_VALUE, null));
    addPVProperty(new PVNameProperty(PROP_VERTICAL_PROFILE_Y_PV_NAME, "Vertical Profile Y PV", WidgetPropertyCategory.Basic, ""), new PVValueProperty(PROP_VERTICAL_PROFILE_Y_PV_VALUE, null));
    addPVProperty(new PVNameProperty(PROP_PIXEL_INFO_PV_NAME, "Pixel Info PV", WidgetPropertyCategory.Basic, ""), new PVValueProperty(PROP_PIXEL_INFO_PV_VALUE, null));
    addProperty(new DoubleProperty(PROP_MIN, "Minimum", WidgetPropertyCategory.Behavior, DEFAULT_MIN), true);
    addProperty(new DoubleProperty(PROP_MAX, "Maximum", WidgetPropertyCategory.Behavior, DEFAULT_MAX), true);
    addProperty(new IntegerProperty(PROP_DATA_WIDTH, "Data Width", WidgetPropertyCategory.Behavior, 0), true);
    addProperty(new IntegerProperty(PROP_DATA_HEIGHT, "Data Height", WidgetPropertyCategory.Behavior, 0), true);
    addProperty(SingleSourceHelper.createColorMapProperty(PROP_COLOR_MAP, "Color Map", WidgetPropertyCategory.Display, new ColorMap(PredefinedColorMap.JET, true, true)), true);
    addProperty(new BooleanProperty(PROP_SHOW_RAMP, "Show Ramp", WidgetPropertyCategory.Display, true), true);
    addProperty(new IntegerProperty(PROP_GRAPH_AREA_WIDTH, "Graph Area Width", WidgetPropertyCategory.Position, 0), true);
    addProperty(new IntegerProperty(PROP_GRAPH_AREA_HEIGHT, "Graph Area Height", WidgetPropertyCategory.Position, 0), true);
    addProperty(new IntegerProperty(PROP_CROP_LEFT, "Crop Left", WidgetPropertyCategory.Behavior, 0));
    addProperty(new IntegerProperty(PROP_CROP_RIGHT, "Crop Right", WidgetPropertyCategory.Behavior, 0));
    addProperty(new IntegerProperty(PROP_CROP_TOP, "Crop Top", WidgetPropertyCategory.Behavior, 0));
    addProperty(new IntegerProperty(PROP_CROP_BOTTOM, "Crop BOTTOM", WidgetPropertyCategory.Behavior, 0));
    addProperty(new BooleanProperty(PROP_RGB_MODE, "RGB Mode", WidgetPropertyCategory.Behavior, false), false);
    addProperty(new ComboProperty(PROP_COLOR_DEPTH, "Color Depth", WidgetPropertyCategory.Behavior, ColorDepth.stringValues(), 0), true);
    addProperty(new BooleanProperty(PROP_SINGLE_LINE_PROFILING, "Profile on Single Line", WidgetPropertyCategory.Behavior, false), true);
    addProperty(new ColorProperty(PROP_ROI_COLOR, "ROI Color", WidgetPropertyCategory.Display, CustomMediaFactory.COLOR_CYAN), true);
    addProperty(new IntegerProperty(PROP_ROI_COUNT, "ROI Count", WidgetPropertyCategory.Behavior, 0, 0, MAX_ROIS_AMOUNT));
    addAxisProperties();
    addROIProperties();
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) ColorMap(org.csstudio.swt.widgets.datadefinition.ColorMap) PredefinedColorMap(org.csstudio.swt.widgets.datadefinition.ColorMap.PredefinedColorMap) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) PVValueProperty(org.csstudio.opibuilder.properties.PVValueProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) PVNameProperty(org.csstudio.opibuilder.properties.PVNameProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 18 with ColorProperty

use of org.csstudio.opibuilder.properties.ColorProperty 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 19 with ColorProperty

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

the class LEDModel method configureProperties.

@Override
protected void configureProperties() {
    super.configureProperties();
    addProperty(new BooleanProperty(PROP_EFFECT3D, "3D Effect", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_SQUARE_LED, "Square LED", WidgetPropertyCategory.Display, false));
    setPropertyVisible(PROP_BOOL_LABEL_POS, false);
    addProperty(new IntegerProperty(PROP_NSTATES, "State Count", WidgetPropertyCategory.Behavior, 2, 2, LEDFigure.MAX_NSTATES));
    setPropertyVisibleAndSavable(PROP_NSTATES, true, false);
    WidgetPropertyCategory category = new NameDefinedCategory("State Fallback");
    addProperty(new StringProperty(PROP_STATE_FALLBACK_LABEL, "Label", category, LEDFigure.DEFAULT_STATE_FALLBACK_LABAL));
    setPropertyVisibleAndSavable(PROP_STATE_FALLBACK_LABEL, false, false);
    addProperty(new ColorProperty(PROP_STATE_FALLBACK_COLOR, "Color", category, LEDFigure.DEFAULT_STATE_FALLBACK_COLOR.getRGB()));
    setPropertyVisibleAndSavable(PROP_STATE_FALLBACK_COLOR, false, false);
    addProperty(new IntegerProperty(PROP_BULB_BORDER, "Bulb border", WidgetPropertyCategory.Display, LEDFigure.DEFAULT_BULB_BORDER_WIDTH));
    addProperty(new ColorProperty(PROP_BULB_BORDER_COLOR, "Bulb border color", WidgetPropertyCategory.Display, LEDFigure.DEFAULT_BULB_BORDER_COLOR.getRGB()));
    for (int state = 0; state < LEDFigure.MAX_NSTATES; state++) {
        category = new NameDefinedCategory(String.format("State %02d", state + 1));
        addProperty(new StringProperty(String.format(PROP_STATE_LABEL, state), "Label", category, LEDFigure.DEFAULT_STATE_LABELS[state]));
        setPropertyVisibleAndSavable(String.format(PROP_STATE_LABEL, state), false, false);
        addProperty(new ColorProperty(String.format(PROP_STATE_COLOR, state), "Color", category, LEDFigure.DEFAULT_STATE_COLORS[state].getRGB()));
        setPropertyVisibleAndSavable(String.format(PROP_STATE_COLOR, state), false, false);
        addProperty(new DoubleProperty(String.format(PROP_STATE_VALUE, state), "Value", category, LEDFigure.DEFAULT_STATE_VALUES[state]));
        setPropertyVisibleAndSavable(String.format(PROP_STATE_VALUE, state), false, false);
    }
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) WidgetPropertyCategory(org.csstudio.opibuilder.properties.WidgetPropertyCategory) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) NameDefinedCategory(org.csstudio.opibuilder.properties.NameDefinedCategory) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 20 with ColorProperty

use of org.csstudio.opibuilder.properties.ColorProperty 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)

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