use of org.csstudio.opibuilder.properties.BooleanProperty 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(new ColorMapProperty(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();
}
use of org.csstudio.opibuilder.properties.BooleanProperty 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 (var 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);
}
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class NativeTextModel method configureProperties.
@Override
protected void configureProperties() {
super.configureProperties();
addProperty(new BooleanProperty(PROP_SHOW_NATIVE_BORDER, "Show Native Border", WidgetPropertyCategory.Display, false));
addProperty(new BooleanProperty(PROP_PASSWORD_INPUT, "Password Input", WidgetPropertyCategory.Behavior, false));
addProperty(new BooleanProperty(PROP_READ_ONLY, "Read Only", WidgetPropertyCategory.Behavior, true));
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));
removeProperty(PROP_TRANSPARENT);
removeProperty(PROP_ROTATION);
removeProperty(PROP_ALIGN_V);
removeProperty(PROP_DATETIME_FORMAT);
removeProperty(PROP_SELECTOR_TYPE);
removeProperty(PROP_FILE_RETURN_PART);
removeProperty(PROP_FILE_SOURCE);
removeProperty(PROP_SHOW_SCROLLBAR);
// If border is alarm sensitive, redraw the border will also redraw the whole canvas in WebOPI
// so make it invisible to make sure user can get best performance.
// Maybe border is not frequently changed?
// setPropertyVisible(PROP_BORDER_ALARMSENSITIVE, false);
}
use of org.csstudio.opibuilder.properties.BooleanProperty in project yamcs-studio by yamcs.
the class WebBrowserModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new StringProperty(PROP_URL, "URL", WidgetPropertyCategory.Basic, ""));
addProperty(new BooleanProperty(PROP_SHOW_TOOLBAR, "Show Toolbar", WidgetPropertyCategory.Display, true));
setPropertyVisible(PROP_FONT, false);
}
use of org.csstudio.opibuilder.properties.BooleanProperty 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));
}
Aggregations