Java Code Examples for org.eclipse.draw2d.ConnectionLocator#MIDDLE

The following examples show how to use org.eclipse.draw2d.ConnectionLocator#MIDDLE . 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: EdgeLabelQuery.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Get the location among {@link LabelViewConstants} constants where to relocate
 * the label figure.
 *
 * @return the location among {@link LabelViewConstants} constants
 */
private static int getLocation(Integer keyPoint) {
	int location = LabelViewConstants.MIDDLE_LOCATION;
	switch (keyPoint) {
	case ConnectionLocator.SOURCE:
		location = LabelViewConstants.TARGET_LOCATION;
		break;
	case ConnectionLocator.TARGET:
		location = LabelViewConstants.SOURCE_LOCATION;
		break;
	case ConnectionLocator.MIDDLE:
		location = LabelViewConstants.MIDDLE_LOCATION;
		break;
	default:
		location = LabelViewConstants.MIDDLE_LOCATION;
		break;
	}
	return location;
}
 
Example 2
Source File: WrappingLabel4EditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}
 
Example 3
Source File: WrappingLabelEditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}
 
Example 4
Source File: WrappingLabel3EditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}
 
Example 5
Source File: WrappingLabel2EditPart.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}
 
Example 6
Source File: SequenceFlowNameEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}
 
Example 7
Source File: MessageFlowLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
public int getKeyPoint() {
	return ConnectionLocator.MIDDLE;
}