Search in sources :

Example 1 with EllipseModel

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

the class EllipseEditpart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    EllipseFigure figure = new EllipseFigure();
    EllipseModel model = getWidgetModel();
    figure.setFill(model.getFillLevel());
    figure.setHorizontalFill(model.isHorizontalFill());
    figure.setTransparent(model.isTransparent());
    figure.setLineColor(model.getLineColor());
    figure.setGradient(model.isGradient());
    figure.setBackGradientStartColor(model.getBackgroundGradientStartColor());
    figure.setForeGradientStartColor(model.getForegroundGradientStartColor());
    return figure;
}
Also used : EllipseFigure(org.csstudio.swt.widgets.figures.EllipseFigure) EllipseModel(org.csstudio.opibuilder.widgets.model.EllipseModel)

Aggregations

EllipseModel (org.csstudio.opibuilder.widgets.model.EllipseModel)1 EllipseFigure (org.csstudio.swt.widgets.figures.EllipseFigure)1