Search in sources :

Example 1 with PolyLineModel

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

the class PolylineEditPart method doCreateFigure.

/**
 * {@inheritDoc}
 */
@Override
protected IFigure doCreateFigure() {
    PolylineFigure polyline = new PolylineFigure();
    PolyLineModel model = getWidgetModel();
    polyline.setPoints(model.getPoints());
    polyline.setFill(model.getFillLevel());
    polyline.setHorizontalFill(model.isHorizontalFill());
    polyline.setTransparent(model.isTransparent());
    polyline.setArrowLineLength(model.getArrowLength());
    polyline.setArrowType(ArrowType.values()[model.getArrowType()]);
    polyline.setFillArrow(model.isFillArrow());
    return polyline;
}
Also used : PolyLineModel(org.csstudio.opibuilder.widgets.model.PolyLineModel) PolylineFigure(org.csstudio.swt.widgets.figures.PolylineFigure)

Aggregations

PolyLineModel (org.csstudio.opibuilder.widgets.model.PolyLineModel)1 PolylineFigure (org.csstudio.swt.widgets.figures.PolylineFigure)1