Search in sources :

Example 1 with BoolSwitchModel

use of org.csstudio.opibuilder.widgets.model.BoolSwitchModel in project yamcs-studio by yamcs.

the class BoolSwitchEditPart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    final BoolSwitchModel model = getWidgetModel();
    BoolSwitchFigure boolSwitch = new BoolSwitchFigure();
    initializeCommonFigureProperties(boolSwitch, model);
    boolSwitch.setEffect3D(model.isEffect3D());
    return boolSwitch;
}
Also used : BoolSwitchFigure(org.csstudio.swt.widgets.figures.BoolSwitchFigure) BoolSwitchModel(org.csstudio.opibuilder.widgets.model.BoolSwitchModel)

Aggregations

BoolSwitchModel (org.csstudio.opibuilder.widgets.model.BoolSwitchModel)1 BoolSwitchFigure (org.csstudio.swt.widgets.figures.BoolSwitchFigure)1