use of org.csstudio.opibuilder.widgets.model.PolygonModel in project yamcs-studio by yamcs.
the class PolygonEditPart method doCreateFigure.
/**
* {@inheritDoc}
*/
@Override
protected IFigure doCreateFigure() {
PolygonFigure polygon = new PolygonFigure();
PolygonModel model = getWidgetModel();
polygon.setPoints(model.getPoints());
polygon.setFill(model.getFillLevel());
polygon.setHorizontalFill(model.isHorizontalFill());
polygon.setTransparent(model.isTransparent());
polygon.setLineColor(model.getLineColor());
return polygon;
}
Aggregations