Java Code Examples for org.eclipse.draw2d.Polyline#setLineWidth()

The following examples show how to use org.eclipse.draw2d.Polyline#setLineWidth() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableLayout.java    From ermasterr with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addVerticalSeparator(final IFigure figure, final Rectangle rect) {
    final Polyline separator = new Polyline();
    separator.setLineWidth(separatorWidth);
    separator.addPoint(new Point(rect.x, rect.y));
    separator.addPoint(new Point(rect.x, rect.y + rect.height));

    figure.getChildren().add(separator);
    separator.setParent(figure);

    separators.add(separator);
}
 
Example 2
Source File: TableLayout.java    From ermasterr with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addHorizontalSeparator(final IFigure figure, final Rectangle rect) {
    final Polyline separator = new Polyline();
    separator.setLineWidth(separatorWidth);
    separator.addPoint(new Point(rect.x, rect.y));
    separator.addPoint(new Point(rect.x + rect.width, rect.y));
    figure.getChildren().add(separator);
    separator.setParent(figure);

    separators.add(separator);
}
 
Example 3
Source File: TableLayout.java    From erflute with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addVerticalSeparator(IFigure figure, Rectangle rect) {
    final Polyline separator = new Polyline();
    separator.setLineWidth(separatorWidth);
    separator.addPoint(new Point(rect.x, rect.y));
    separator.addPoint(new Point(rect.x, rect.y + rect.height));

    figure.getChildren().add(separator);
    separator.setParent(figure);

    separators.add(separator);
}
 
Example 4
Source File: TableLayout.java    From erflute with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addHorizontalSeparator(IFigure figure, Rectangle rect) {
    final Polyline separator = new Polyline();
    separator.setLineWidth(separatorWidth);
    separator.addPoint(new Point(rect.x, rect.y));
    separator.addPoint(new Point(rect.x + rect.width, rect.y));
    figure.getChildren().add(separator);
    separator.setParent(figure);

    separators.add(separator);
}
 
Example 5
Source File: TableLayout.java    From ermaster-b with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addVerticalSeparator(IFigure figure, Rectangle rect) {
	Polyline separator = new Polyline();
	separator.setLineWidth(separatorWidth);
	separator.addPoint(new Point(rect.x, rect.y));
	separator.addPoint(new Point(rect.x, rect.y + rect.height));

	figure.getChildren().add(separator);
	separator.setParent(figure);

	this.separators.add(separator);
}
 
Example 6
Source File: TableLayout.java    From ermaster-b with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
private void addHorizontalSeparator(IFigure figure, Rectangle rect) {
	Polyline separator = new Polyline();
	separator.setLineWidth(separatorWidth);
	separator.addPoint(new Point(rect.x, rect.y));
	separator.addPoint(new Point(rect.x + rect.width, rect.y));
	figure.getChildren().add(separator);
	separator.setParent(figure);

	this.separators.add(separator);
}