Java Code Examples for org.eclipse.gmf.runtime.notation.DecorationNode#setType()

The following examples show how to use org.eclipse.gmf.runtime.notation.DecorationNode#setType() . 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: CrossflowViewProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private Node createLabel(View owner, String hint) {
	DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
	rv.setType(hint);
	ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
	return rv;
}
 
Example 2
Source File: FactoryUtils.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
public static Node createLabel(View owner, String hint) {
	DecorationNode nameLabel = NotationFactory.eINSTANCE.createDecorationNode();
	nameLabel.setType(hint);

	ShapeStyle style = NotationFactory.eINSTANCE.createShapeStyle();
	style.setFontColor(FigureUtilities.RGBToInteger(ColorConstants.black.getRGB()));
	nameLabel.getStyles().add(style);

	ViewUtil.insertChildView(owner, nameLabel, ViewUtil.APPEND, true);
	nameLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
	return nameLabel;
}
 
Example 3
Source File: ProcessViewProvider.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
private Node createLabel(View owner, String hint) {
	DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
	rv.setType(hint);
	ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
	return rv;
}
 
Example 4
Source File: CustomProcessViewProvider.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
private Node createLabel(final View owner, final String hint) {
    final DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
    rv.setType(hint);
    ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
    return rv;
}
 
Example 5
Source File: ProcBuilder.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
private Node createLabel(final View owner, final String hint) {
    final DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
    rv.setType(hint);
    ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
    return rv;
}