use of org.csstudio.opibuilder.widgets.model.GaugeModel in project yamcs-studio by yamcs.
the class GaugeEditPart method doCreateFigure.
/**
* {@inheritDoc}
*/
@Override
protected IFigure doCreateFigure() {
final GaugeModel model = getWidgetModel();
GaugeFigure gauge = new GaugeFigure();
initializeCommonFigureProperties(gauge, model);
gauge.setNeedleColor(CustomMediaFactory.getInstance().getColor((model.getNeedleColor())));
gauge.setEffect3D(model.isEffect3D());
gauge.setGradient(model.isRampGradient());
return gauge;
}
Aggregations