Search in sources :

Example 1 with PolygonModel

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;
}
Also used : PolygonFigure(org.csstudio.swt.widgets.figures.PolygonFigure) PolygonModel(org.csstudio.opibuilder.widgets.model.PolygonModel)

Aggregations

PolygonModel (org.csstudio.opibuilder.widgets.model.PolygonModel)1 PolygonFigure (org.csstudio.swt.widgets.figures.PolygonFigure)1