use of org.csstudio.opibuilder.widgets.model.AbstractPolyModel in project yamcs-studio by yamcs.
the class AbstractPolyFeedbackFactory method createDragSourceFeedbackFigure.
/**
* {@inheritDoc}
*/
@Override
public final IFigure createDragSourceFeedbackFigure(final AbstractWidgetModel model, final Rectangle initalBounds) {
assert model != null;
// $NON-NLS-1$
assert model instanceof AbstractPolyModel : "model instanceof AbstractPolyModel";
assert initalBounds != null;
// get the points from the model
AbstractPolyModel abstractPolyElement = (AbstractPolyModel) model;
PointList points = abstractPolyElement.getPoints();
// create feedbackfigure
// RectangleWithPolyLineFigure r = new
// RectangleWithPolyLineFigure(points);
PolyFeedbackFigureWithRectangle feedbackFigure = new PolyFeedbackFigureWithRectangle(createFeedbackFigure(), points);
return feedbackFigure;
}
Aggregations