Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007 Anyware Technologies 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: Anyware Technologies - initial API and implementation $Id: PackageLabelRectangle.java,v 1.4 2008/04/28 08:41:33 jlescot Exp $ /
package org.eclipse.emf.ecoretools.diagram.edit.figures;
Figure of the label EPackage
creation : 01 sept. 2007

Author(s):
Gilles Cannenterre
public class PackageLabelRectangle extends RectangleFigure {
	protected void outlineShape(Graphics graphics) {
		int x = r.x +  / 2;
		int y = r.y +  / 2;
		int h = r.height;
		int w = r.width - Math.max(1, );
		Point p1 = new Point(xy + h);
		Point p2 = new Point(xy);
		Point p3 = new Point(x + wy);
		Point p4 = new Point(x + wy + h);
		graphics.drawLine(p1p2);
		graphics.drawLine(p2p3);
		graphics.drawLine(p3p4);
	}
New to GrepCode? Check out our FAQ X