Search in sources :

Example 1 with GaugeModel

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;
}
Also used : GaugeModel(org.csstudio.opibuilder.widgets.model.GaugeModel) GaugeFigure(org.csstudio.swt.widgets.figures.GaugeFigure)

Aggregations

GaugeModel (org.csstudio.opibuilder.widgets.model.GaugeModel)1 GaugeFigure (org.csstudio.swt.widgets.figures.GaugeFigure)1