Search in sources :

Example 1 with RoundedRectangleModel

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

the class RoundedRectangleEditpart method doCreateFigure.

@Override
protected IFigure doCreateFigure() {
    RoundedRectangleFigure figure = new RoundedRectangleFigure();
    RoundedRectangleModel model = getWidgetModel();
    figure.setFill(model.getFillLevel());
    figure.setHorizontalFill(model.isHorizontalFill());
    figure.setTransparent(model.isTransparent());
    figure.setCornerDimensions(new Dimension(model.getCornerWidth(), model.getCornerHeight()));
    figure.setLineColor(model.getLineColor());
    figure.setGradient(model.isGradient());
    figure.setBackGradientStartColor(model.getBackgroundGradientStartColor());
    figure.setForeGradientStartColor(model.getForegroundGradientStartColor());
    return figure;
}
Also used : RoundedRectangleModel(org.csstudio.opibuilder.widgets.model.RoundedRectangleModel) RoundedRectangleFigure(org.csstudio.swt.widgets.figures.RoundedRectangleFigure) Dimension(org.eclipse.draw2d.geometry.Dimension)

Aggregations

RoundedRectangleModel (org.csstudio.opibuilder.widgets.model.RoundedRectangleModel)1 RoundedRectangleFigure (org.csstudio.swt.widgets.figures.RoundedRectangleFigure)1 Dimension (org.eclipse.draw2d.geometry.Dimension)1