Search in sources :

Example 1 with MeterModel

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

Aggregations

MeterModel (org.csstudio.opibuilder.widgets.model.MeterModel)1 MeterFigure (org.csstudio.swt.widgets.figures.MeterFigure)1