src/org/tiefaces/components/websheet/utility/ShiftFormulaUtility.java
private static boolean isFollowedByValueOperator(final Ptg[] ptgs,
			final int position) {

		for (int i = position; i < ptgs.length; i++) {
			Object ptg = ptgs[position];
			if (ptg instanceof OperationPtg) {
				return ptg instanceof ValueOperatorPtg;
			} else if (ptg instanceof AttrPtg) {
				return false;
			}
		}
		return false;
	}
private static boolean isFollowedByValueOperator(final Ptg[] ptgs,
			final int position) {

		for (int i = position; i < ptgs.length; i++) {
			Object ptg = ptgs[position];
			if (ptg instanceof OperationPtg) {
				return ptg instanceof ValueOperatorPtg;
			} else if (ptg instanceof AttrPtg) {
				return false;
			}
		}
		return false;
	}
private static boolean isFollowedByValueOperator ( final Ptg [ ] ptgs , final int position ) { for ( int i = position ; i < ptgs . length ; i ++ ) { Object ptg = ptgs [ position ] ; if ( ptg instanceof OperationPtg ) { return ptg instanceof ValueOperatorPtg ; } else if ( ptg instanceof AttrPtg ) { return false ; } } return false ; }
check is current ptg followed by valueOperationPtg. valueOperationPtg
include: Add, SubStract, Multiply, Divide etc.

@param ptgs
the ptgs
@param position
the position
@return true, if is followed by value operator
check is current ptg followed by valueOperationPtg . valueOperationPtg include : Add SubStract Multiply Divide etc .