Search in sources :

Example 1 with ArcModel

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

the class ArcEditpart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    ArcFigure figure = new ArcFigure();
    ArcModel model = getWidgetModel();
    figure.setFill(model.isFill());
    figure.setStartAngle(model.getStartAngle());
    figure.setTotalAngle(model.getTotalAngle());
    return figure;
}
Also used : ArcModel(org.csstudio.opibuilder.widgets.model.ArcModel) ArcFigure(org.csstudio.swt.widgets.figures.ArcFigure)

Aggregations

ArcModel (org.csstudio.opibuilder.widgets.model.ArcModel)1 ArcFigure (org.csstudio.swt.widgets.figures.ArcFigure)1