use of org.csstudio.opibuilder.datadefinition.DisplayScaleData in project yamcs-studio by yamcs.
the class DisplayModel method configureProperties.
@Override
protected void configureProperties() {
addProperty(new IntegerProperty(PROP_GRID_SPACE, "Grid Space", WidgetPropertyCategory.Display, 6, 1, 1000));
addProperty(new BooleanProperty(PROP_SHOW_GRID, "Show Grid", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_RULER, "Show Ruler", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SNAP_GEOMETRY, "Snap to Geometry", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_SHOW_EDIT_RANGE, "Show Edit Range", WidgetPropertyCategory.Display, true));
addProperty(new BooleanProperty(PROP_AUTO_ZOOM_TO_FIT_ALL, "Auto Zoom to Fit All", WidgetPropertyCategory.Behavior, false));
addProperty(new ComplexDataProperty(PROP_AUTO_SCALE_WIDGETS, "Auto Scale Widgets (at Runtime)", WidgetPropertyCategory.Behavior, new DisplayScaleData(this), "Scale Widgets as windows resizes"));
addProperty(new BooleanProperty(PROP_SHOW_CLOSE_BUTTON, "Show Close Button", WidgetPropertyCategory.Display, true));
var version = new Version(0, 0, 0);
addProperty(new VersionProperty(PROP_BOY_VERSION, "BOY Version", WidgetPropertyCategory.Basic, version.toString()));
addProperty(new DoubleProperty(PROP_FRAME_RATE, "Frame Rate", WidgetPropertyCategory.Display, -1.0));
setPropertyVisible(PROP_BORDER_COLOR, false);
setPropertyVisible(PROP_BORDER_STYLE, false);
setPropertyVisible(PROP_BORDER_WIDTH, false);
setPropertyVisible(PROP_VISIBLE, false);
setPropertyVisible(PROP_ENABLED, false);
setPropertyVisible(PROP_TOOLTIP, false);
setPropertyVisible(PROP_ACTIONS, false);
setPropertyVisible(PROP_FONT, false);
setPropertyVisibleAndSavable(PROP_FRAME_RATE, false, false);
setPropertyVisibleAndSavable(PROP_BOY_VERSION, false, true);
addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
setPropertyDescription(PROP_COLOR_FOREGROUND, "Grid Color");
setPropertyValue(PROP_NAME, "");
removeProperty(PROP_SCALE_OPTIONS);
}
Aggregations