use of org.eclipse.draw2d.AbstractBorder in project whole by wholeplatform.
the class ParallelFigure method createBorder.
protected AbstractBorder createBorder(final boolean isHorizontal) {
return new AbstractBorder() {
private final Insets /*static*/
INSETS = new Insets(10, 10, 10, 10);
public Insets getInsets(IFigure figure) {
return INSETS;
}
public void paint(IFigure figure, Graphics graphics, Insets insets) {
Rectangle rect = getPaintRectangle(figure, insets).resize(-1, -1);
graphics.setForegroundColor(ColorConstants.lightGray);
// graphics.setLineStyle(SWT.LINE_CUSTOM);
// graphics.setLineDash(new int[] {8,3});
graphics.drawRoundRectangle(rect, 10, 10);
}
};
}
use of org.eclipse.draw2d.AbstractBorder in project whole by wholeplatform.
the class PickControlFigure method createBorder.
protected AbstractBorder createBorder(final boolean isHorizontal) {
return new AbstractBorder() {
private final Insets /*static*/
INSETS = new Insets(10, 10, 20, 10);
public Insets getInsets(IFigure figure) {
return INSETS;
}
public void paint(IFigure figure, Graphics graphics, Insets insets) {
Rectangle rect = getPaintRectangle(figure, insets).resize(-1, -1);
graphics.setForegroundColor(ColorConstants.lightGray);
// graphics.setLineStyle(SWT.LINE_CUSTOM);
// graphics.setLineDash(new int[] {8,3});
graphics.drawRoundRectangle(rect, 10, 10);
}
};
}
use of org.eclipse.draw2d.AbstractBorder in project whole by wholeplatform.
the class SequenceFigure method createBorder.
protected AbstractBorder createBorder(final boolean isHorizontal) {
return new AbstractBorder() {
private final Insets /*static*/
INSETS = new Insets(10, 20, 10, 20);
public Insets getInsets(IFigure figure) {
return INSETS;
}
public void paint(IFigure figure, Graphics graphics, Insets insets) {
Rectangle rect = getPaintRectangle(figure, insets).resize(-1, -1);
graphics.setForegroundColor(ColorConstants.lightGray);
// graphics.setLineStyle(SWT.LINE_CUSTOM);
// graphics.setLineDash(new int[] {8,3});
graphics.drawRoundRectangle(rect, 10, 10);
}
};
}
use of org.eclipse.draw2d.AbstractBorder in project whole by wholeplatform.
the class SwitchControlFigure method createBorder.
protected AbstractBorder createBorder(final boolean isHorizontal) {
return new AbstractBorder() {
private final Insets /*static*/
INSETS = new Insets(10, 10, 10, 10);
public Insets getInsets(IFigure figure) {
return INSETS;
}
public void paint(IFigure figure, Graphics graphics, Insets insets) {
Rectangle rect = getPaintRectangle(figure, insets).resize(-1, -1);
graphics.setForegroundColor(ColorConstants.lightGray);
// graphics.setLineStyle(SWT.LINE_CUSTOM);
// graphics.setLineDash(new int[] {8,3});
graphics.drawRoundRectangle(rect, 10, 10);
}
};
}
Aggregations