Search in sources :

Example 1 with TankModel

use of org.csstudio.opibuilder.widgets.model.TankModel in project yamcs-studio by yamcs.

the class TankEditPart method doCreateFigure.

/**
 * {@inheritDoc}
 */
@Override
protected IFigure doCreateFigure() {
    TankModel model = getWidgetModel();
    TankFigure tank = new TankFigure();
    initializeCommonFigureProperties(tank, model);
    tank.setFillColor(model.getFillColor());
    tank.setEffect3D(model.isEffect3D());
    tank.setFillBackgroundColor(model.getFillbackgroundColor());
    return tank;
}
Also used : TankFigure(org.csstudio.swt.widgets.figures.TankFigure) TankModel(org.csstudio.opibuilder.widgets.model.TankModel)

Aggregations

TankModel (org.csstudio.opibuilder.widgets.model.TankModel)1 TankFigure (org.csstudio.swt.widgets.figures.TankFigure)1