Java Code Examples for org.eclipse.draw2d.IFigure#getLayoutManager()

The following examples show how to use org.eclipse.draw2d.IFigure#getLayoutManager() . 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: Task2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	if (VISUAL_ID != 3007 && VISUAL_ID != 2007) {
		getPrimaryShape().addMouseMotionListener(new ActivityCursorMouseMotionListener());
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 2
Source File: IntermediateCatchTimerEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 3
Source File: IntermediateErrorCatchEventLabel6EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 4
Source File: BoundaryTimerEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 5
Source File: CatchLinkEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 6
Source File: TaskEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 7
Source File: StartMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 8
Source File: XORGatewayLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 9
Source File: SubProcessEventEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	if (VISUAL_ID != 3007 && VISUAL_ID != 2007) {
		getPrimaryShape().addMouseMotionListener(new ActivityCursorMouseMotionListener());
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 10
Source File: CallActivityEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	if (VISUAL_ID != 3007 && VISUAL_ID != 2007) {
		getPrimaryShape().addMouseMotionListener(new ActivityCursorMouseMotionListener());
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 11
Source File: PoolEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	if (VISUAL_ID != 3007 && VISUAL_ID != 2007) {
		getPrimaryShape().addMouseMotionListener(new ActivityCursorMouseMotionListener());
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 12
Source File: QueueEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Default implementation treats passed figure as content pane. Respects layout
 * one may have set for generated figure.
 * 
 * @param nodeShape instance of generated figure class
 * @generated
 */
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 13
Source File: FieldEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 14
Source File: IntermediateThrowMessageEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 15
Source File: SourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 16
Source File: CsvSourceEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 17
Source File: EndErrorEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 18
Source File: ThrowLinkEventLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}
 
Example 19
Source File: SendTask2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* Default implementation treats passed figure as content pane.
* Respects layout one may have set for generated figure.
* @param nodeShape instance of generated figure class
* @generated
*/
protected IFigure setupContentPane(IFigure nodeShape) {
	if (nodeShape.getLayoutManager() == null) {
		ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
		layout.setSpacing(5);
		nodeShape.setLayoutManager(layout);
	}
	if (VISUAL_ID != 3007 && VISUAL_ID != 2007) {
		getPrimaryShape().addMouseMotionListener(new ActivityCursorMouseMotionListener());
	}
	return nodeShape; // use nodeShape itself as contentPane
}
 
Example 20
Source File: IntermediateErrorCatchEventLabel2EditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public IBorderItemLocator getBorderItemLocator() {
	IFigure parentFigure = getFigure().getParent();
	if (parentFigure != null && parentFigure.getLayoutManager() != null) {
		Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
		return (IBorderItemLocator) constraint;
	}
	return null;
}