Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
*******************************************************************************/
package org.eclipse.wb.internal.layout.group.gef;

import org.eclipse.wb.draw2d.Figure;
import org.eclipse.wb.draw2d.FigureUtils;
import org.eclipse.wb.internal.core.gef.policy.layout.absolute.AbsolutePolicyUtils;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Polyline;
Expand Down Expand Up @@ -70,10 +70,10 @@ public void fillArc(int x,
final int arcAngle) {
IFigure figure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
protected void paintFigure(Graphics graphics) {
graphics.setBackgroundColor(AbsolutePolicyUtils.COLOR_FEEDBACK);
graphics.setAntialias(SWT.ON);
graphics.fillArc(1, 1, width - 1, height - 1, startAngle, arcAngle);
graphics.fillArc(bounds.x + 1, bounds.y + 1, width - 1, height - 1, startAngle, arcAngle);
}
};
Point point = new Point(x, y);
Expand All @@ -88,10 +88,10 @@ public void drawLinkBadge(int x, int y, int dimension) {
final Image image = getImage(dimension);
IFigure figure = new Figure() {
@Override
protected void paintClientArea(Graphics graphics) {
protected void paintFigure(Graphics graphics) {
// draw image
if (image != null) {
graphics.drawImage(image, 0, 0);
graphics.drawImage(image, bounds.x, bounds.y);
}
}
};
Expand Down
Loading