/*****************************************************************************
* Copyright (c) 2009 Atos Origin.
*
*
* 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:
* Atos Origin - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.activity.figures;
import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
import org.eclipse.papyrus.uml.diagram.common.figure.node.PapyrusWrappingLabel;
/**
* This class is a {@link WrappingLabel}, which default behavior is set
* differently :
*
* The text is left aligned and automatically wraps on several lines.
*/
public class WrappedLabel extends PapyrusWrappingLabel {
/**
* Construct an empty wrapping label with customized alignment.
*/
public WrappedLabel() {
super();
setTextJustification(WrappingLabel.LEFT);
setAlignment(WrappingLabel.LEFT);
setTextWrap(true);
}
}