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;
}
Aggregations