Search in sources :

Example 1 with DisplayScaleData

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);
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) ComplexDataProperty(org.csstudio.opibuilder.properties.ComplexDataProperty) Version(org.osgi.framework.Version) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty) VersionProperty(org.csstudio.opibuilder.properties.VersionProperty) DoubleProperty(org.csstudio.opibuilder.properties.DoubleProperty) DisplayScaleData(org.csstudio.opibuilder.datadefinition.DisplayScaleData)

Aggregations

DisplayScaleData (org.csstudio.opibuilder.datadefinition.DisplayScaleData)1 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)1 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)1 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)1 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)1 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)1 VersionProperty (org.csstudio.opibuilder.properties.VersionProperty)1 Version (org.osgi.framework.Version)1