Search in sources :

Example 6 with PROP_WIDTH

use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH in project yamcs-studio by yamcs.

the class LEDEditPart method registerPropertyChangeHandlers.

@Override
protected void registerPropertyChangeHandlers() {
    registerCommonPropertyChangeHandlers();
    setPropertyChangeHandler(PROP_EFFECT3D, (oldValue, newValue, refreshableFigure) -> {
        var led = (LEDFigure) refreshableFigure;
        led.setEffect3D((Boolean) newValue);
        return true;
    });
    setPropertyChangeHandler(PROP_SQUARE_LED, (oldValue, newValue, refreshableFigure) -> {
        var led = (LEDFigure) refreshableFigure;
        led.setSquareLED((Boolean) newValue);
        if (!(Boolean) newValue) {
            var width = Math.min(getWidgetModel().getWidth(), getWidgetModel().getHeight());
            getWidgetModel().setSize(width, width);
        }
        return true;
    });
    // force square size
    IWidgetPropertyChangeHandler sizeHandler = (oldValue, newValue, figure) -> {
        if (getWidgetModel().isSquareLED()) {
            return false;
        }
        if (((Integer) newValue) < LEDModel.MINIMUM_SIZE) {
            newValue = LEDModel.MINIMUM_SIZE;
        }
        getWidgetModel().setSize((Integer) newValue, (Integer) newValue);
        return false;
    };
    PropertyChangeListener sizeListener = evt -> sizeHandler.handleChange(evt.getOldValue(), evt.getNewValue(), getFigure());
    getWidgetModel().getProperty(PROP_WIDTH).addPropertyChangeListener(sizeListener);
    getWidgetModel().getProperty(PROP_HEIGHT).addPropertyChangeListener(sizeListener);
    getWidgetModel().getProperty(PROP_NSTATES).addPropertyChangeListener(evt -> initializeNStatesProperties((Integer) evt.getOldValue(), (Integer) evt.getNewValue(), (LEDFigure) getFigure(), getWidgetModel()));
    getWidgetModel().getProperty(PROP_STATE_FALLBACK_LABEL).addPropertyChangeListener(evt -> initializeStateFallbackLabel((String) evt.getOldValue(), (String) evt.getNewValue(), (LEDFigure) getFigure(), getWidgetModel()));
    getWidgetModel().getProperty(PROP_STATE_FALLBACK_COLOR).addPropertyChangeListener(evt -> initializeStateFallbackColor(((OPIColor) evt.getOldValue()).getSWTColor(), ((OPIColor) evt.getNewValue()).getSWTColor(), (LEDFigure) getFigure(), getWidgetModel()));
    getWidgetModel().getProperty(PROP_BULB_BORDER).addPropertyChangeListener(evt -> initializeStateBulbBorderWidth((Integer) evt.getNewValue(), (LEDFigure) getFigure(), getWidgetModel()));
    getWidgetModel().getProperty(PROP_BULB_BORDER_COLOR).addPropertyChangeListener(evt -> initializeStateBulbBorderColor(((OPIColor) evt.getNewValue()).getSWTColor(), (LEDFigure) getFigure(), getWidgetModel()));
    for (var idx = 0; idx < LEDFigure.MAX_NSTATES; idx++) {
        var state = idx;
        getWidgetModel().getProperty(String.format(PROP_STATE_LABEL, state)).addPropertyChangeListener(evt -> initializeStateLabel(state, (String) evt.getOldValue(), (String) evt.getNewValue(), (LEDFigure) getFigure(), getWidgetModel()));
        getWidgetModel().getProperty(String.format(PROP_STATE_COLOR, state)).addPropertyChangeListener(evt -> initializeStateColor(state, ((OPIColor) evt.getOldValue()).getSWTColor(), ((OPIColor) evt.getNewValue()).getSWTColor(), (LEDFigure) getFigure(), getWidgetModel()));
        getWidgetModel().getProperty(String.format(PROP_STATE_VALUE, state)).addPropertyChangeListener(evt -> initializeStateValue(state, (Double) evt.getOldValue(), (Double) evt.getNewValue(), (LEDFigure) getFigure(), getWidgetModel()));
    }
}
Also used : PROP_STATE_LABEL(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_STATE_LABEL) AbstractBoolFigure(org.csstudio.swt.widgets.figures.AbstractBoolFigure) LEDFigure(org.csstudio.swt.widgets.figures.LEDFigure) PROP_BULB_BORDER_COLOR(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_BULB_BORDER_COLOR) PROP_HEIGHT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT) PROP_OFF_LABEL(org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel.PROP_OFF_LABEL) IFigure(org.eclipse.draw2d.IFigure) AbstractBoolWidgetModel(org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel) PROP_OFF_COLOR(org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel.PROP_OFF_COLOR) OPIColor(org.csstudio.opibuilder.util.OPIColor) PROP_BULB_BORDER(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_BULB_BORDER) PROP_SQUARE_LED(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_SQUARE_LED) LEDModel(org.csstudio.opibuilder.widgets.model.LEDModel) PROP_ON_COLOR(org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel.PROP_ON_COLOR) PROP_EFFECT3D(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_EFFECT3D) PROP_STATE_COLOR(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_STATE_COLOR) PROP_STATE_FALLBACK_COLOR(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_STATE_FALLBACK_COLOR) PROP_NSTATES(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_NSTATES) PropertyChangeListener(java.beans.PropertyChangeListener) Color(org.eclipse.swt.graphics.Color) PROP_STATE_FALLBACK_LABEL(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_STATE_FALLBACK_LABEL) PROP_ON_LABEL(org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel.PROP_ON_LABEL) PROP_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH) PROP_STATE_VALUE(org.csstudio.opibuilder.widgets.model.LEDModel.PROP_STATE_VALUE) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) PropertyChangeListener(java.beans.PropertyChangeListener) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) LEDFigure(org.csstudio.swt.widgets.figures.LEDFigure) OPIColor(org.csstudio.opibuilder.util.OPIColor)

Example 7 with PROP_WIDTH

use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH in project yamcs-studio by yamcs.

the class TabEditPart method registerPropertyChangeHandlers.

@Override
protected void registerPropertyChangeHandlers() {
    // init tabs
    var i = 0;
    for (var child : getWidgetModel().getChildren()) {
        if (child instanceof GroupingContainerModel) {
            child.setPropertyValue(PROP_VISIBLE, true);
            child.setPropertyValue(PROP_VISIBLE, false);
            getTabFigure().addTab((String) getWidgetModel().getPropertyValue(TabModel.makeTabPropID(TabProperty.TITLE.propIDPre, i)));
            tabItemList.add(i, new TabItem(getWidgetModel(), i, (GroupingContainerModel) child));
            for (var tabProperty : TabProperty.values()) {
                setTabProperty(i, tabProperty, getWidgetModel().getPropertyValue(TabModel.makeTabPropID(tabProperty.propIDPre, i)));
            }
            i++;
        }
    }
    IWidgetPropertyChangeHandler relocContainerHandler = (oldValue, newValue, figure) -> {
        updateTabAreaSize();
        refreshVisuals();
        return false;
    };
    setPropertyChangeHandler(PROP_WIDTH, relocContainerHandler);
    setPropertyChangeHandler(PROP_HEIGHT, relocContainerHandler);
    setPropertyChangeHandler(PROP_HORIZONTAL_TABS, (oldValue, newValue, figure) -> {
        ((TabFigure) figure).setHorizontal((Boolean) newValue);
        updateTabAreaSize();
        refreshVisuals();
        return false;
    });
    setPropertyChangeHandler(PROP_ACTIVE_TAB, (oldValue, newValue, figure) -> {
        ((TabFigure) figure).setActiveTabIndex((Integer) newValue);
        updateTabAreaSize();
        refreshVisuals();
        return false;
    });
    setPropertyChangeHandler(PROP_MINIMUM_TAB_HEIGHT, (oldValue, newValue, figure) -> {
        ((TabFigure) figure).setMinimumTabHeight((Integer) newValue);
        return false;
    });
    setPropertyChangeHandler(PROP_BORDER_WIDTH, (oldValue, newValue, figure) -> {
        updateTabAreaSize();
        return false;
    });
    registerTabPropertyChangeHandlers();
    registerTabsAmountChangeHandler();
}
Also used : PROP_BORDER_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_BORDER_WIDTH) Dimension(org.eclipse.draw2d.geometry.Dimension) PROP_HEIGHT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT) CustomMediaFactory(org.csstudio.ui.util.CustomMediaFactory) IFigure(org.eclipse.draw2d.IFigure) Level(java.util.logging.Level) TabFigure(org.csstudio.swt.widgets.figures.TabFigure) PROP_HORIZONTAL_TABS(org.csstudio.opibuilder.widgets.model.TabModel.PROP_HORIZONTAL_TABS) UIBundlingThread(org.csstudio.ui.util.thread.UIBundlingThread) PROP_ACTIVE_TAB(org.csstudio.opibuilder.widgets.model.TabModel.PROP_ACTIVE_TAB) OPIColor(org.csstudio.opibuilder.util.OPIColor) GroupingContainerModel(org.csstudio.opibuilder.widgets.model.GroupingContainerModel) LinkedList(java.util.LinkedList) PROP_VISIBLE(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_VISIBLE) OPIBuilderPlugin(org.csstudio.opibuilder.OPIBuilderPlugin) TabProperty(org.csstudio.opibuilder.widgets.model.TabModel.TabProperty) PROP_TAB_COUNT(org.csstudio.opibuilder.widgets.model.TabModel.PROP_TAB_COUNT) AbstractBaseEditPart(org.csstudio.opibuilder.editparts.AbstractBaseEditPart) PROP_TRANSPARENT(org.csstudio.opibuilder.widgets.model.GroupingContainerModel.PROP_TRANSPARENT) PROP_MINIMUM_TAB_HEIGHT(org.csstudio.opibuilder.widgets.model.TabModel.PROP_MINIMUM_TAB_HEIGHT) TabModel(org.csstudio.opibuilder.widgets.model.TabModel) AbstractContainerEditpart(org.csstudio.opibuilder.editparts.AbstractContainerEditpart) Path(org.eclipse.core.runtime.Path) OPIFont(org.csstudio.opibuilder.util.OPIFont) ITabItemHandler(org.csstudio.opibuilder.widgets.model.TabModel.ITabItemHandler) Label(org.eclipse.draw2d.Label) EditPolicy(org.eclipse.gef.EditPolicy) BorderStyle(org.csstudio.opibuilder.visualparts.BorderStyle) EditPart(org.eclipse.gef.EditPart) PROP_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) GroupingContainerModel(org.csstudio.opibuilder.widgets.model.GroupingContainerModel) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) TabFigure(org.csstudio.swt.widgets.figures.TabFigure)

Example 8 with PROP_WIDTH

use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH in project yamcs-studio by yamcs.

the class GaugeEditPart method registerPropertyChangeHandlers.

@Override
protected void registerPropertyChangeHandlers() {
    registerCommonPropertyChangeHandlers();
    setPropertyChangeHandler(PROP_NEEDLE_COLOR, (oldValue, newValue, refreshableFigure) -> {
        var gauge = (GaugeFigure) refreshableFigure;
        gauge.setNeedleColor(((OPIColor) newValue).getSWTColor());
        return false;
    });
    setPropertyChangeHandler(PROP_EFFECT3D, (oldValue, newValue, refreshableFigure) -> {
        var gauge = (GaugeFigure) refreshableFigure;
        gauge.setEffect3D((Boolean) newValue);
        return false;
    });
    setPropertyChangeHandler(PROP_RAMP_GRADIENT, (oldValue, newValue, refreshableFigure) -> {
        var gauge = (GaugeFigure) refreshableFigure;
        gauge.setGradient((Boolean) newValue);
        return false;
    });
    IWidgetPropertyChangeHandler sizeHandler = (oldValue, newValue, figure) -> {
        if (((Integer) newValue) < GaugeModel.MINIMUM_SIZE) {
            newValue = GaugeModel.MINIMUM_SIZE;
        }
        getWidgetModel().setSize((Integer) newValue, (Integer) newValue);
        return false;
    };
    PropertyChangeListener sizeListener = evt -> sizeHandler.handleChange(evt.getOldValue(), evt.getNewValue(), getFigure());
    getWidgetModel().getProperty(PROP_WIDTH).addPropertyChangeListener(sizeListener);
    getWidgetModel().getProperty(PROP_HEIGHT).addPropertyChangeListener(sizeListener);
}
Also used : PropertyChangeListener(java.beans.PropertyChangeListener) GaugeFigure(org.csstudio.swt.widgets.figures.GaugeFigure) PROP_HEIGHT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT) GaugeModel(org.csstudio.opibuilder.widgets.model.GaugeModel) PROP_EFFECT3D(org.csstudio.opibuilder.widgets.model.GaugeModel.PROP_EFFECT3D) PROP_NEEDLE_COLOR(org.csstudio.opibuilder.widgets.model.GaugeModel.PROP_NEEDLE_COLOR) OPIColor(org.csstudio.opibuilder.util.OPIColor) PROP_RAMP_GRADIENT(org.csstudio.opibuilder.widgets.model.GaugeModel.PROP_RAMP_GRADIENT) CustomMediaFactory(org.csstudio.ui.util.CustomMediaFactory) IFigure(org.eclipse.draw2d.IFigure) PROP_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) PropertyChangeListener(java.beans.PropertyChangeListener) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) GaugeFigure(org.csstudio.swt.widgets.figures.GaugeFigure)

Example 9 with PROP_WIDTH

use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH in project yamcs-studio by yamcs.

the class ComboEditPart method registerPropertyChangeHandlers.

@Override
@SuppressWarnings("unchecked")
protected void registerPropertyChangeHandlers() {
    setPropertyChangeHandler(PROP_PVNAME, (oldValue, newValue, figure) -> {
        registerLoadItemsListener();
        return false;
    });
    autoSizeWidget((ComboFigure) getFigure());
    setPropertyChangeHandler(PROP_PVVALUE, (oldValue, newValue, refreshableFigure) -> {
        if (newValue != null) {
            var stringValue = VTypeHelper.getString((VType) newValue);
            if (Arrays.asList(combo.getItems()).contains(stringValue)) {
                combo.setText(stringValue);
            } else {
                combo.deselectAll();
            // 
            // if(getWidgetModel().isBorderAlarmSensitve())
            // autoSizeWidget((ComboFigure) refreshableFigure);
            }
        }
        return true;
    });
    setPropertyChangeHandler(PROP_ITEMS, (oldValue, newValue, refreshableFigure) -> {
        if (newValue != null && newValue instanceof List) {
            updateCombo((List<String>) newValue);
            if (getWidgetModel().isItemsFromPV()) {
                combo.setText(VTypeHelper.getString(getPVValue(PROP_PVNAME)));
            }
        }
        return true;
    });
    IWidgetPropertyChangeHandler handler = (oldValue, newValue, refreshableFigure) -> {
        updatePropSheet((Boolean) newValue);
        return false;
    };
    getWidgetModel().getProperty(PROP_ITEMS_FROM_PV).addPropertyChangeListener(evt -> handler.handleChange(evt.getOldValue(), evt.getNewValue(), getFigure()));
    // size change handlers--always apply the default height
    IWidgetPropertyChangeHandler handle = (oldValue, newValue, figure) -> {
        autoSizeWidget((ComboFigure) figure);
        return true;
    };
    setPropertyChangeHandler(PROP_WIDTH, handle);
    setPropertyChangeHandler(PROP_HEIGHT, handle);
    setPropertyChangeHandler(PROP_BORDER_STYLE, handle);
    setPropertyChangeHandler(PROP_BORDER_WIDTH, handle);
    setPropertyChangeHandler(PROP_FONT, handle);
}
Also used : PROP_PVVALUE(org.csstudio.opibuilder.model.IPVWidgetModel.PROP_PVVALUE) Arrays(java.util.Arrays) PROP_BORDER_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_BORDER_WIDTH) ComboModel(org.csstudio.opibuilder.widgets.model.ComboModel) PROP_HEIGHT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT) PROP_ITEMS_FROM_PV(org.csstudio.opibuilder.widgets.model.ComboModel.PROP_ITEMS_FROM_PV) PROP_PVNAME(org.csstudio.opibuilder.model.IPVWidgetModel.PROP_PVNAME) IFigure(org.eclipse.draw2d.IFigure) PROP_ITEMS(org.csstudio.opibuilder.widgets.model.ComboModel.PROP_ITEMS) IPV(org.yamcs.studio.data.IPV) ComboFigure(org.csstudio.opibuilder.widgets.figures.ComboFigure) IPVListener(org.yamcs.studio.data.IPVListener) ExecutionMode(org.csstudio.opibuilder.editparts.ExecutionMode) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) Combo(org.eclipse.swt.widgets.Combo) VTypeHelper(org.yamcs.studio.data.VTypeHelper) VEnum(org.yamcs.studio.data.vtype.VEnum) PROP_FONT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_FONT) List(java.util.List) VType(org.yamcs.studio.data.vtype.VType) AbstractPVWidgetEditPart(org.csstudio.opibuilder.editparts.AbstractPVWidgetEditPart) SelectionEvent(org.eclipse.swt.events.SelectionEvent) PROP_BORDER_STYLE(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_BORDER_STYLE) PROP_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) SelectionListener(org.eclipse.swt.events.SelectionListener) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) List(java.util.List) ComboFigure(org.csstudio.opibuilder.widgets.figures.ComboFigure)

Example 10 with PROP_WIDTH

use of org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH in project yamcs-studio by yamcs.

the class Draw2DButtonEditPartDelegate method registerPropertyChangeHandlers.

@Override
public void registerPropertyChangeHandlers() {
    editpart.setPropertyChangeHandler(PROP_TEXT, (oldValue, newValue, refreshableFigure) -> {
        var figure = (ActionButtonFigure) refreshableFigure;
        figure.setText(newValue.toString());
        figure.calculateTextPosition();
        return true;
    });
    editpart.setPropertyChangeHandler(PROP_IMAGE, (oldValue, newValue, refreshableFigure) -> {
        var figure = (ActionButtonFigure) refreshableFigure;
        var absolutePath = (String) newValue;
        if (absolutePath != null && !absolutePath.contains("://")) {
            var path = Path.fromPortableString(absolutePath);
            if (!path.isAbsolute()) {
                path = ResourceUtil.buildAbsolutePath(editpart.getWidgetModel(), path);
                absolutePath = path.toPortableString();
            }
        }
        figure.setImagePath(absolutePath);
        return true;
    });
    editpart.setPropertyChangeHandler(PROP_WIDTH, (oldValue, newValue, refreshableFigure) -> {
        var figure = (ActionButtonFigure) refreshableFigure;
        var height = (Integer) editpart.getPropertyValue(PROP_HEIGHT);
        figure.calculateTextPosition((Integer) newValue, height);
        return true;
    });
    editpart.setPropertyChangeHandler(PROP_HEIGHT, (oldValue, newValue, refreshableFigure) -> {
        var figure = (ActionButtonFigure) refreshableFigure;
        var width = (Integer) editpart.getPropertyValue(PROP_WIDTH);
        figure.calculateTextPosition(width, (Integer) newValue);
        return true;
    });
    IWidgetPropertyChangeHandler buttonStyleHandler = (oldValue, newValue, refreshableFigure) -> {
        var figure = (ActionButtonFigure) refreshableFigure;
        figure.setToggleStyle((Boolean) newValue);
        editpart.updatePropSheet();
        return true;
    };
    editpart.getWidgetModel().getProperty(PROP_TOGGLE_BUTTON).addPropertyChangeListener(evt -> buttonStyleHandler.handleChange(evt.getOldValue(), evt.getNewValue(), editpart.getFigure()));
}
Also used : ActionButtonFigure(org.csstudio.swt.widgets.figures.ActionButtonFigure) OpenDisplayAction(org.csstudio.opibuilder.widgetActions.OpenDisplayAction) PROP_HEIGHT(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT) ResourceUtil(org.csstudio.opibuilder.util.ResourceUtil) PROP_TEXT(org.csstudio.opibuilder.widgets.model.ActionButtonModel.PROP_TEXT) IFigure(org.eclipse.draw2d.IFigure) PROP_TOGGLE_BUTTON(org.csstudio.opibuilder.widgets.model.ActionButtonModel.PROP_TOGGLE_BUTTON) PROP_IMAGE(org.csstudio.opibuilder.widgets.model.ActionButtonModel.PROP_IMAGE) ActionButtonModel(org.csstudio.opibuilder.widgets.model.ActionButtonModel) Path(org.eclipse.core.runtime.Path) SWT(org.eclipse.swt.SWT) PROP_WIDTH(org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH) ExecutionMode(org.csstudio.opibuilder.editparts.ExecutionMode) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) IWidgetPropertyChangeHandler(org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler) ActionButtonFigure(org.csstudio.swt.widgets.figures.ActionButtonFigure)

Aggregations

PROP_HEIGHT (org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_HEIGHT)11 PROP_WIDTH (org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_WIDTH)11 IWidgetPropertyChangeHandler (org.csstudio.opibuilder.properties.IWidgetPropertyChangeHandler)11 IFigure (org.eclipse.draw2d.IFigure)11 ExecutionMode (org.csstudio.opibuilder.editparts.ExecutionMode)6 PROP_BORDER_WIDTH (org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_BORDER_WIDTH)6 PROP_BORDER_STYLE (org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_BORDER_STYLE)5 Path (org.eclipse.core.runtime.Path)5 PropertyChangeListener (java.beans.PropertyChangeListener)4 ResourceUtil (org.csstudio.opibuilder.util.ResourceUtil)4 Color (org.eclipse.swt.graphics.Color)4 AbstractBaseEditPart (org.csstudio.opibuilder.editparts.AbstractBaseEditPart)3 AbstractContainerEditpart (org.csstudio.opibuilder.editparts.AbstractContainerEditpart)3 PROP_PVNAME (org.csstudio.opibuilder.model.IPVWidgetModel.PROP_PVNAME)3 PROP_PVVALUE (org.csstudio.opibuilder.model.IPVWidgetModel.PROP_PVVALUE)3 OPIColor (org.csstudio.opibuilder.util.OPIColor)3 FigureTransparencyHelper (org.csstudio.opibuilder.widgets.FigureTransparencyHelper)3 Arrays (java.util.Arrays)2 List (java.util.List)2 PROP_VISIBLE (org.csstudio.opibuilder.model.AbstractWidgetModel.PROP_VISIBLE)2