Search in sources :

Example 11 with ComboProperty

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

the class AbstractBoolWidgetModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, -1, -1, 63));
    addProperty(new BooleanProperty(PROP_SHOW_BOOL_LABEL, "Show Boolean Label", WidgetPropertyCategory.Display, false));
    addProperty(new StringProperty(PROP_ON_LABEL, "On Label", WidgetPropertyCategory.Display, DEFAULT_ON_LABEL));
    addProperty(new StringProperty(PROP_OFF_LABEL, "Off Label", WidgetPropertyCategory.Display, DEFAULT_OFF_LABEL));
    addProperty(new ColorProperty(PROP_ON_COLOR, "On Color", WidgetPropertyCategory.Display, DEFAULT_ON_COLOR));
    addProperty(new ColorProperty(PROP_OFF_COLOR, "Off Color", WidgetPropertyCategory.Display, DEFAULT_OFF_COLOR));
    addProperty(new ComboProperty(PROP_DATA_TYPE, "Data Type", WidgetPropertyCategory.Behavior, new String[] { "Bit", "Enum" }, 0));
    addProperty(new StringProperty(PROP_ON_STATE, "On State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new StringProperty(PROP_OFF_STATE, "Off State", WidgetPropertyCategory.Behavior, ""));
    addProperty(new ComboProperty(PROP_BOOL_LABEL_POS, "Boolean Label Position", WidgetPropertyCategory.Display, BoolLabelPosition.stringValues(), 0));
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 12 with ComboProperty

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

the class AbstractShapeModel method configureProperties.

/**
 * {@inheritDoc}
 */
@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_LINE_WIDTH, "Line Width", WidgetPropertyCategory.Display, 0, 0, 100));
    addProperty(new IntegerProperty(PROP_ALPHA, "Alpha", WidgetPropertyCategory.Display, 255, 0, 255));
    addProperty(new ComboProperty(PROP_LINE_STYLE, "Line Style", WidgetPropertyCategory.Display, LineStyle.stringValues(), 0));
    addProperty(new ColorProperty(PROP_LINE_COLOR, "Line Color", WidgetPropertyCategory.Display, DEFAULT_LINE_COLOR));
    addProperty(new DoubleProperty(PROP_FILL_LEVEL, "Fill Level", WidgetPropertyCategory.Display, 0.0, 0.0, 100.0));
    addProperty(new BooleanProperty(PROP_HORIZONTAL_FILL, "Horizontal Fill", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_ANTIALIAS, "Anti Alias", WidgetPropertyCategory.Display, true));
    addProperty(new BooleanProperty(PROP_TRANSPARENT, "Transparent", WidgetPropertyCategory.Display, false));
}
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) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 13 with ComboProperty

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

the class ActionButtonModel method configureProperties.

/**
 * {@inheritDoc}
 */
@Override
protected void configureProperties() {
    addProperty(new ComboProperty(PROP_STYLE, "Style", WidgetPropertyCategory.Basic, Style.stringValues(), getDefaultStyle().ordinal()));
    addProperty(new StringProperty(PROP_TEXT, "Text", WidgetPropertyCategory.Display, "$(actions)", // $NON-NLS-1$
    true));
    addProperty(new IntegerProperty(PROP_ACTION_INDEX, "Click Action Index", WidgetPropertyCategory.Behavior, 0, -1, Integer.MAX_VALUE));
    addProperty(new IntegerProperty(PROP_RELEASED_ACTION_INDEX, "Release Action Index", WidgetPropertyCategory.Behavior, 0, -1, Integer.MAX_VALUE));
    addProperty(new BooleanProperty(PROP_TOGGLE_BUTTON, "Toggle Button", WidgetPropertyCategory.Behavior, DEFAULT_TOGGLE_BUTTON));
    addProperty(new FilePathProperty(PROP_IMAGE, "Icon File", WidgetPropertyCategory.Display, new Path(""), // $NON-NLS-1$
    FILE_EXTENSIONS));
    removeProperty(PROP_ACTIONS);
    addProperty(new ActionsProperty(PROP_ACTIONS, "Actions", WidgetPropertyCategory.Behavior, false));
    setPropertyVisible(PROP_RELEASED_ACTION_INDEX, DEFAULT_TOGGLE_BUTTON);
}
Also used : ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IPath(org.eclipse.core.runtime.IPath) Path(org.eclipse.core.runtime.Path) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) ActionsProperty(org.csstudio.opibuilder.properties.ActionsProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty)

Example 14 with ComboProperty

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

the class ImageModel method configureProperties.

/**
 * {@inheritDoc}
 */
@Override
protected void configureProperties() {
    addProperty(new FilePathProperty(PROP_IMAGE_FILE, "Image File", WidgetPropertyCategory.Basic, new Path(""), FILE_EXTENSIONS));
    addProperty(new IntegerProperty(PROP_TOPCROP, "Crop Top", WidgetPropertyCategory.Image, 0));
    addProperty(new IntegerProperty(PROP_BOTTOMCROP, "Crop Bottom", WidgetPropertyCategory.Image, 0));
    addProperty(new IntegerProperty(PROP_LEFTCROP, "Crop Left", WidgetPropertyCategory.Image, 0));
    addProperty(new IntegerProperty(PROP_RIGHTCROP, "Crop Right", WidgetPropertyCategory.Image, 0));
    addProperty(new BooleanProperty(PROP_STRETCH, "Stretch to Fit", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Image, true));
    addProperty(new BooleanProperty(PROP_NO_ANIMATION, "No Animation", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_ALIGN_TO_NEAREST_SECOND, "Animation aligned to the nearest second", WidgetPropertyCategory.Image, false));
    addProperty(new ComboProperty(PROP_DEGREE, "Rotation Angle", WidgetPropertyCategory.Image, allowedDegrees, 0));
    addProperty(new BooleanProperty(PROP_FLIP_HORIZONTAL, "Flip Horizontal", WidgetPropertyCategory.Image, false));
    addProperty(new BooleanProperty(PROP_FLIP_VERTICAL, "Flip Vertical", WidgetPropertyCategory.Image, false));
    addProperty(new MatrixProperty(PERMUTATION_MATRIX, "Permutation Matrix", WidgetPropertyCategory.Image, PermutationMatrix.generateIdentityMatrix().getMatrix()));
    setPropertyVisibleAndSavable(PERMUTATION_MATRIX, false, true);
    FigureTransparencyHelper.addProperty(this);
}
Also used : IPath(org.eclipse.core.runtime.IPath) Path(org.eclipse.core.runtime.Path) ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) MatrixProperty(org.csstudio.opibuilder.properties.MatrixProperty) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty)

Example 15 with ComboProperty

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

Aggregations

ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)20 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)19 IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)14 StringProperty (org.csstudio.opibuilder.properties.StringProperty)8 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)7 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)6 PropertyChangeEvent (java.beans.PropertyChangeEvent)3 PropertyChangeListener (java.beans.PropertyChangeListener)3 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)3 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)3 IPath (org.eclipse.core.runtime.IPath)3 Path (org.eclipse.core.runtime.Path)3 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)2 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)2 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)2 RGB (org.eclipse.swt.graphics.RGB)2 UID (java.rmi.server.UID)1 List (java.util.List)1 WidgetScaleData (org.csstudio.opibuilder.datadefinition.WidgetScaleData)1 AbstractWidgetModel (org.csstudio.opibuilder.model.AbstractWidgetModel)1