Search in sources :

Example 1 with RectangleModel

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

the class RectangleEditpart method doCreateFigure.

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

Aggregations

RectangleModel (org.csstudio.opibuilder.widgets.model.RectangleModel)1 RoundedRectangleModel (org.csstudio.opibuilder.widgets.model.RoundedRectangleModel)1 OPIRectangleFigure (org.csstudio.swt.widgets.figures.OPIRectangleFigure)1