use of org.csstudio.opibuilder.widgets.model.MeterModel in project yamcs-studio by yamcs.
the class MeterEditPart method doCreateFigure.
/**
* {@inheritDoc}
*/
@Override
protected IFigure doCreateFigure() {
final MeterModel model = getWidgetModel();
MeterFigure xMeter = new MeterFigure();
initializeCommonFigureProperties(xMeter, model);
xMeter.setNeedleColor((model.getNeedleColor()));
xMeter.setGradient(model.isRampGradient());
xMeter.setValueLabelVisibility(model.isShowValueLabelVisible());
return xMeter;
}
Aggregations