| /******************************************************************************* |
| * Copyright (c) 2010-2011, Istvan Rath and Zoltan Ujhelyi |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Istvan Rath - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.viatra2.visualisation.common.labelproviders.internal;
|
|
|
| import org.eclipse.draw2d.Graphics;
|
| import org.eclipse.draw2d.IFigure;
|
| import org.eclipse.draw2d.LineBorder;
|
| import org.eclipse.draw2d.geometry.Insets;
|
| import org.eclipse.swt.SWT;
|
| import org.eclipse.swt.graphics.Color;
|
|
|
| public class DashedBorder extends LineBorder {
|
|
|
| public DashedBorder(Color color, int width)
|
| {
|
| super(color, width);
|
| }
|
|
|
| @Override
|
| public void paint(IFigure figure, Graphics graphics, Insets insets) {
|
| graphics.setLineStyle(SWT.LINE_DASH);
|
| super.paint(figure, graphics, insets);
|
| }
|
|
|
| }
|