use of org.eclipse.draw2d.RoundedRectangle in project webtools.sourceediting by eclipse.
the class BaseDragAndDropCommand method getFeedbackFigure.
public IFigure getFeedbackFigure() {
Figure panel = new Figure();
panel.setLayoutManager(new FreeformLayout());
panel.setOpaque(false);
Polyline feedbackFigure = new Polyline();
feedbackFigure.setLineWidth(2);
drawLines(feedbackFigure);
originalLocation = new Rectangle(feedbackFigure.getBounds());
panel.add(feedbackFigure);
polyLine = new Polyline();
polyLine.setLineStyle(Graphics.LINE_DASHDOT);
polyLine.setLineWidth(1);
panel.add(polyLine);
panel.setBounds(originalLocation);
addConnectorToParent(panel);
if (parentEditPart != null && parentEditPart.getFigure() instanceof GenericGroupFigure) {
GenericGroupFigure fig = (GenericGroupFigure) parentEditPart.getFigure();
Rectangle iconBounds = getZoomedBounds(fig.getIconFigure().getBounds());
RoundedRectangle roundedRectangle = new RoundedRectangle();
roundedRectangle.setFill(false);
roundedRectangle.setOpaque(true);
// roundedRectangle.setBounds(new Rectangle(iconBounds.x, iconBounds.y, iconBounds.width - 1, iconBounds.height - 1));
roundedRectangle.setBounds(iconBounds);
panel.add(roundedRectangle);
}
return panel;
}
use of org.eclipse.draw2d.RoundedRectangle in project statecharts by Yakindu.
the class TreeLayoutEditPolicy method getFeedbackFigure.
private IFigure getFeedbackFigure() {
if (feedbackFigure == null) {
final RoundedRectangle pl = new RoundedRectangle();
pl.setForegroundColor(ColorConstants.black);
pl.setBackgroundColor(ColorConstants.black);
pl.setBounds(getFeedbackFigureBounds());
feedbackFigure = pl;
}
return feedbackFigure;
}
Aggregations