Search in sources :

Example 1 with ThermometerModel

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

the class ThermometerEditPart method doCreateFigure.

/**
 * {@inheritDoc}
 */
@Override
protected IFigure doCreateFigure() {
    ThermometerModel model = getWidgetModel();
    ThermometerFigure thermometer = new ThermometerFigure();
    initializeCommonFigureProperties(thermometer, model);
    thermometer.setFillColor(model.getFillColor());
    thermometer.setTemperatureUnit(model.getUnit());
    thermometer.setShowBulb(model.isShowBulb());
    thermometer.setFillBackgroundColor(model.getFillbackgroundColor());
    thermometer.setEffect3D(model.isEffect3D());
    return thermometer;
}
Also used : ThermometerModel(org.csstudio.opibuilder.widgets.model.ThermometerModel) ThermometerFigure(org.csstudio.swt.widgets.figures.ThermometerFigure)

Aggregations

ThermometerModel (org.csstudio.opibuilder.widgets.model.ThermometerModel)1 ThermometerFigure (org.csstudio.swt.widgets.figures.ThermometerFigure)1