Search in sources :

Example 16 with IntegerProperty

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

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

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

the class CheckBoxModel method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new IntegerProperty(PROP_BIT, "Bit", WidgetPropertyCategory.Behavior, 0, -1, 63));
    addProperty(new StringProperty(PROP_LABEL, "Label", WidgetPropertyCategory.Display, // $NON-NLS-1$
    ""));
    addProperty(new BooleanProperty(PROP_AUTOSIZE, "Auto Size", WidgetPropertyCategory.Display, false));
    addProperty(new ColorProperty(PROP_SELECTED_COLOR, "Selected Color", WidgetPropertyCategory.Display, new RGB(77, 77, 77)));
}
Also used : IntegerProperty(org.csstudio.opibuilder.properties.IntegerProperty) BooleanProperty(org.csstudio.opibuilder.properties.BooleanProperty) StringProperty(org.csstudio.opibuilder.properties.StringProperty) RGB(org.eclipse.swt.graphics.RGB) ColorProperty(org.csstudio.opibuilder.properties.ColorProperty)

Example 19 with IntegerProperty

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

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

IntegerProperty (org.csstudio.opibuilder.properties.IntegerProperty)29 BooleanProperty (org.csstudio.opibuilder.properties.BooleanProperty)27 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)14 ColorProperty (org.csstudio.opibuilder.properties.ColorProperty)12 StringProperty (org.csstudio.opibuilder.properties.StringProperty)12 DoubleProperty (org.csstudio.opibuilder.properties.DoubleProperty)9 PropertyChangeEvent (java.beans.PropertyChangeEvent)4 PropertyChangeListener (java.beans.PropertyChangeListener)4 PVNameProperty (org.csstudio.opibuilder.properties.PVNameProperty)4 WidgetPropertyCategory (org.csstudio.opibuilder.properties.WidgetPropertyCategory)4 ActionsProperty (org.csstudio.opibuilder.properties.ActionsProperty)3 FontProperty (org.csstudio.opibuilder.properties.FontProperty)3 PVValueProperty (org.csstudio.opibuilder.properties.PVValueProperty)3 ComplexDataProperty (org.csstudio.opibuilder.properties.ComplexDataProperty)2 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)2 NameDefinedCategory (org.csstudio.opibuilder.properties.NameDefinedCategory)2 IPath (org.eclipse.core.runtime.IPath)2 Path (org.eclipse.core.runtime.Path)2 RGB (org.eclipse.swt.graphics.RGB)2 UID (java.rmi.server.UID)1