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;
}
Aggregations